change to arduino-cli, document build flags
This commit is contained in:
parent
c88c1a68be
commit
cefc4473e5
|
|
@ -991,4 +991,4 @@ void loop()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
23
README.md
23
README.md
|
|
@ -26,7 +26,9 @@ Das sind die verwendeten Libraries [1]:
|
||||||
| https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git | master | 688f255 | Fri, 3 Jan 2020 12:35:22 -0700 |
|
| https://github.com/sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library.git | master | 688f255 | Fri, 3 Jan 2020 12:35:22 -0700 |
|
||||||
| https://github.com/sparkfun/SparkFun_BME280_Arduino_Library.git | master | 0b5eabf | Wed, 30 Dec 2020 20:44:27 -0700 |
|
| https://github.com/sparkfun/SparkFun_BME280_Arduino_Library.git | master | 0b5eabf | Wed, 30 Dec 2020 20:44:27 -0700 |
|
||||||
|
|
||||||
|
`
|
||||||
[1]: echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |"
|
[1]: echo "| $(git remote -v |grep fetch |awk '{print $2}' |tr '\n' ' ') | $(git log --pretty=format:'%h | %cD ' -n 1) |"
|
||||||
|
`
|
||||||
|
|
||||||
## Wir verwenden arduino-cli
|
## Wir verwenden arduino-cli
|
||||||
|
|
||||||
|
|
@ -46,9 +48,24 @@ $ arduino-cli core install CubeCell:CubeCell
|
||||||
$ arduino-cli core list
|
$ arduino-cli core list
|
||||||
|
|
||||||
Compile:
|
Compile:
|
||||||
$ arduino-cli compile --fqbn CubeCell:CubeCell:CubeCell-Board MiniBeieliNodeSketch
|
$ arduino-cli compile --fqbn CubeCell:CubeCell:CubeCell-Board \
|
||||||
|
--build-property "build.band=REGION_EU868" \
|
||||||
|
--build-property "build.LORAWAN_CLASS=CLASS_A" \
|
||||||
|
--build-property "build.LORAWAN_CLASS=CLASS_A" \
|
||||||
|
--build-property "build.LORAWAN_DEVEUI_AUTO=0" \
|
||||||
|
--build-property "build.LORAWAN_NETMODE=true" \
|
||||||
|
--build-property "build.LORAWAN_ADR=true" \
|
||||||
|
--build-property "build.LORAWAN_UPLINKMODE=false" \
|
||||||
|
--build-property "build.LORAWAN_Net_Reserve=false" \
|
||||||
|
--build-property "build.LORAWAN_AT_SUPPORT=1" \
|
||||||
|
--build-property "build.RGB=0" \
|
||||||
|
--build-property "build.LORAWAN_DebugLevel=0" \
|
||||||
|
MiniBeieliNodeSketch
|
||||||
|
|
||||||
|
Output ist in /tmp/arduino-sketch-XXXXXXXXXXXXXXXXXXXXXXXXX und kann kopiert werden:
|
||||||
|
$ mkdir ~/arduino-builds-saved/20210423/
|
||||||
|
$ cp /tmp/arduino-sketch-0870BAA82DFEB3C4E076C8FBBDEB25B4/CubeCell_Board_REGION_EU868_RGB_0.cyacd ~/arduino-builds-saved/20210423/
|
||||||
|
|
||||||
Upload:
|
Upload:
|
||||||
$ arduino-cli board list
|
/home/joerg/Arduino/hardware/CubeCell/CubeCell/tools/CubeCellflash/CubeCellflash -serial /dev/ttyUSB0 /home/joerg/arduino-builds-saved/20210423/CubeCell_Board_REGION_EU868_RGB_0.cyacd
|
||||||
$ arduino-cli upload -p /dev/ttyUSB0 --fqbn CubeCell:CubeCell:CubeCell-Board MiniBeieliNodeSketch
|
|
||||||
`
|
`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue