1

我无法使用 PlatformIO 将 Arduino 草图上传到 TinyScreen+。上传成功,但 TinyScreen+ 无法启动。如果我使用 Arduino IDE,上传和启动就可以了。

我在上传时查看了 Arduino IDE 和 PlatformIO 的输出,除了固件的大小之外,一切都是一样的。PlatformIO .bin 大了 2 页。这有关系吗?另外为什么使用PlatformIO上传时上传成功但没有启动?

这是我的platformio.ini:

[platformio]
src_dir=src/tinywatch

[common_env_data]
lib_deps_builtin =
  TinyScreen
  Wire
lib_deps_external =
  https://github.com/cbolgiano/tinywatch/raw/develop/libs/Time-
master.zip
  https://github.com/cbolgiano/tinywatch/raw/develop/libs/arduino-BLEPeripheral-master.zip
  https://github.com/cbolgiano/tinywatch/raw/develop/libs/tinywatch-time.zip

[env:tinyscreen+]
platform = atmelsam

board = mkrzero

framework = arduino

lib_deps =
  ${common_env_data.lib_deps_builtin}
  ${common_env_data.lib_deps_external}`

谢谢你。

4

0 回答 0