Adding new board definitions to arduino 1.6
-
I'm trying to create a new board definition file for the micro board, so it's easier for others to compile things specifically to this board.
But It seems that I am missing something, as I keep getting the following error now:
sketch_feb24a.ino:1:21: fatal error: Arduino.h: No such file or directory compilation terminated.
(It's just the default empty sketch that I'm trying to compile)
I have created the following structure under my arduino folder
hardware\ ->MySensors\ ->avr\ ->boards.txt platform.txt (copy from main arduino dir) programmers.txt (empty file) variants\ ->Micro\ ->pins_arduino.h
THe above was made partially with info from https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5---3rd-party-Hardware-specification
boards.txt contains the following
MySensorsMicro.name=MySensors MicroMySensorsMicro.upload.tool=arduino:avrdude MySensorsMicro.upload.protocol=arduino MySensorsMicro.upload.maximum_size=30720 MySensorsMicro.upload.maximum_data_size=2048 MySensorsMicro.upload.speed=57600 MySensorsMicro.bootloader.tool=arduino:avrdude MySensorsMicro.bootloader.unlock_bits=0x3F MySensorsMicro.bootloader.lock_bits=0x0F MySensorsMicro.bootloader.low_fuses=0xFF MySensorsMicro.bootloader.high_fuses=0xDA MySensorsMicro.bootloader.extended_fuses=0x05 MySensorsMicro.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex MySensorsMicro.build.board=AVR_MICRO8 MySensorsMicro.build.core=arduino MySensorsMicro.build.variant=micro MySensorsMicro.build.mcu=atmega328p MySensorsMicro.build.f_cpu=8000000L
However, it doesn't work at all.. As mentioned before, It can't find the arduino.h file, and I can't figure out why..
Is there anyone else that has a bit more knowledge about boards definition in the newest arduino 1.6, that could help out?