Skip to content

sacalon/arduino_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arduino_example

Trying to use Hascal in arduino boards

Perquisites

  • Latest Hascal Compiler(from git repo)
  • avr-gcc>7.5.x
  • Arduino IDE
  • make
  • avrdude(to uploading hex file to board)
  • Arduino Uno board

Getting Started

  • At first clone the repo :
git clone https://github.com/hascal/arduino_example
cd arduino_example
  • Open config.json file in your code editor and replace {arduino_path} with your arduino installation path.
  • generate hex file :
make
  • Upload generated hex file to board :
avrdude -C avrdude.conf -v -patmega328p -carduino -P/dev/ttyUSB4 -b115200 -D -Uflash:w: app.hex 

Replace /dev/ttyUSB4 with your COM port. NOTE: This example only works with Arduino Uno, but you can edit codes to run this example on your device.

About

Trying to use Hascal in arduino boards

Resources

License

Stars

Watchers

Forks