feat: added platformio support
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Touch pad on ATMega 8/48/168/328 + nRF24L01
|
||||
# Touch pad on ATMega 168 + nRF24L01
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
38
platformio.ini
Executable file
38
platformio.ini
Executable file
@@ -0,0 +1,38 @@
|
||||
[env:ATmega168]
|
||||
platform = atmelavr
|
||||
board = ATmega168
|
||||
board_build.mcu = atmega168
|
||||
board_build.f_cpu = 8000000L
|
||||
upload_protocol = usbasp
|
||||
board_fuses.hfuse = 0xDF
|
||||
board_fuses.lfuse = 0xE2
|
||||
board_fuses.efuse = 0x07
|
||||
upload_flags =
|
||||
-Pusb
|
||||
-e
|
||||
|
||||
[env:ATmega168P]
|
||||
platform = atmelavr
|
||||
board = ATmega168P
|
||||
board_build.mcu = atmega168p
|
||||
board_build.f_cpu = 8000000L
|
||||
upload_protocol = usbasp
|
||||
board_fuses.hfuse = 0xDF
|
||||
board_fuses.lfuse = 0xE2
|
||||
board_fuses.efuse = 0x07
|
||||
upload_flags =
|
||||
-Pusb
|
||||
-e
|
||||
|
||||
[env:ATmega168PB]
|
||||
platform = atmelavr
|
||||
board = ATmega168PB
|
||||
board_build.mcu = atmega168pb
|
||||
board_build.f_cpu = 8000000L
|
||||
upload_protocol = usbasp
|
||||
board_fuses.hfuse = 0xDF
|
||||
board_fuses.lfuse = 0xE2
|
||||
board_fuses.efuse = 0x07
|
||||
upload_flags =
|
||||
-Pusb
|
||||
-e
|
||||
@@ -1,11 +1,8 @@
|
||||
#include "avr/io.h"
|
||||
#include "avr/sleep.h"
|
||||
#include "avr/fuse.h"
|
||||
#include "avr/interrupt.h"
|
||||
#include "util/delay.h"
|
||||
|
||||
FUSES = {0xE2, 0xDF, 0x07};
|
||||
|
||||
#define GATEWAY_CHANNEL 120
|
||||
#define GATEWAY_ADDRESS 0xDDEEFF
|
||||
#define DEVICE_ID 6
|
||||
|
||||
1
version.txt
Normal file
1
version.txt
Normal file
@@ -0,0 +1 @@
|
||||
1.1.0
|
||||
Reference in New Issue
Block a user