C언어 > Lamwino: Lazarus Arduino Module Wizard: Version 0.1

TODAY1,182 TOTAL2,922,618
사이트 이용안내
Login▼/회원가입
최신글보기 질문게시판 기술자료 동영상강좌

아두이노 센서 ATMEGA128 PWM LED 초음파 AVR 블루투스 LCD UART 모터 적외선


BASIC4MCU | C언어 | 델파이 | Lamwino: Lazarus Arduino Module Wizard: Version 0.1

페이지 정보

작성자 master 작성일2018-09-27 16:58 조회2,021회 댓글0건

본문

Lamwino: Lazarus Arduino Module Wizard: Version 0.1

"A wizard to create Arduino loadable module (.hex) using Lazarus/Free Pascal"
	https://github.com/jmpessoa/lazarduinomodulewizard
	http://forum.lazarus.freepascal.org/index.php?topic=31513.msg201993

Key Features:
	1.Builder for FPC avr/arduino cross compiler

	2.New Project option:  "Arduino [avr] Module"

	3.Install ".hex" module in Arduino device

Author: 
	Jose Marques Pessoa
		jmpessoa_hotmail_com
		https://github.com/jmpessoa/lazarduinomodulewizard

Acknowledgements [all teachings!]: 
          
	-Ygot, 
	-HatForCat
	-Engkin 
		ref. http://forum.lazarus.freepascal.org/index.php/topic,30960.msg201921.html#msg201921

Version 0.1 revision 03 - 24 Fev - 2016

NEW! Added string support to Serial
NEW! LamwinoDemo4 [String Serial demo] //<---- Please, use some "Serial Monitor" app to send and receive info...		

Version 0.1 revision 02 - 22 Feb - 2016

NEW! Added support to Serial [COM]

NEW! LamwinoDemo3 [Serial demo] //<---- Please, use some "Serial Monitor" app to send and receive info...

WARNING! Please, configure NEW "Path do code Templates"
	IDE menu "Tools" --> [Lamwino] Arduino Module Wizard --> Settings

IMPROVED! Added support to commons Arduino chip

IMPROVED! Usability

Version 0.1 revision 01 - 14 Feb - 2016

NEW! Added support to Arduino Mega 2560
  1. Prerequisites/Infrastructure

    Arduino IDE: [drives, binutils, toolchains, avrdude, serial monitor, etc...] ref. https://www.arduino.cc/en/Main/Software

    SlikSvn: command line SVN client ref. https://sliksvn.com/pub/Slik-Subversion-1.8.11-win32.msi [windows]

    Optional: Serial-Monitor-Deluxe [Pure FPC/Lazarus app!!] [windows] ref. http://www.idogendel.com/en/products/serial-monitor-deluxe

  2. Lamwino Install

    arduinonewprojectwizard.lpk lamwino_ide_tools.lpk [..../ide-tools]

  3. Lamwino Use

      1. Settings:

      Lazarus IDE menu "Tools" ---> "[Lamwino] Arduino Module Wizard" --> "Settings ..."

    3.2. Building FPC AVR/Arduino cross compiler

     Lazarus IDE menu "Tools" ---> "[Lamwino] Arduino Module Wizard" -->  "Get FPC Source"	
     	.[if you do not have it!]			
    
     Lazarus IDE menu "Tools" ---> "[Lamwino] Arduino Module Wizard" -->  "Build FPC Cross Arduino"	
     	.Build
     	.Install
    

    3.3 New Project

     .Lazarus IDE select "Project" -> "New Project" 
     .Arduino Avr Module [Lamwino]
    
     .Path to projects folder  
     .Project Name
     .Target
     .Generad Code [to start]
     	[x]Blinking     //<---- * LamwinoDemo1, thanks to @ykot!
     
     .OK
    
     .Save
    
     .Lazarus IDE menu "Run" ---> "Build"
    
     {-------------------------------------
     .check for usb/pc/arduino connection
     .check for arduino COM port used ***
     -------------------------------------}
    
     .Lazarus IDE menu "Run" ---> "[Lamwino] Install/Run"
    
     .Congratulations!!!  \o/ \o/ \o/ \o/
    
     ***How to Detect Arduino used COM Port
     1.Windows 10 
     	Start Menu
     	Settings
     	Devices
     	Connected Devices
    
     2. All Windows:
     	Controls Panel
     	Device Manager
     	Ports(COM & LPT)
    

    3.4 Using Demos [....\demos]

     .Go to project ".lpi" and [if needed] change: atmega328p [and avr5] 
     according to you arduino device [and compiler!]		
    
     	<Item0 Name="AVRCHIP" Value="atmega328p"/>
     	<CustomOptions Value="-Cpavr5 -Wpatmega328p -a"/>
    
     Note: atmega328p and avr5 are "Arduino Uno" compatibles!
    
  4. References:

    .FPC/Lazarus Arduino Tutorial ref. http://forum.lazarus.freepascal.org/index.php/topic,30960.msg201921.html#msg201921

    .Arduino UNO Pinout Diagram ref. http://forum.arduino.cc/index.php?topic=146315.0

    .I/O Port Operations in AVR ref. http://maxembedded.com/2011/06/port-operations-in-avr/

    .Cduino: Arduino Programming with C and Make ref. http://brittonkerin.com/cduino/lessons.html LamwinoDemo2 <<--- lesson3!

Thanks to All!

by jmpessoa [jmpessoa[AT]hotmail[DOT]com]

 

https://github.com/jmpessoa/lazarduinomodulewizard 

 

 

 

 

http://forum.lazarus.freepascal.org/index.php/topic,30960.30.html 

 

 

 

댓글 0

조회수 2,021

등록된 댓글이 없습니다.

C언어HOME > C언어 > 전체 목록

게시물 검색

2022년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2021년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2020년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2019년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2018년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
Privacy Policy
MCU BASIC ⓒ 2020
모바일버전으로보기