platformio.ini 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. [picow]
  2. extends = rp2040_base
  3. platform = https://github.com/maxgerhardt/platform-raspberrypi.git
  4. board = rpipicow
  5. board_build.core = earlephilhower
  6. board_build.filesystem_size = 0.5m
  7. build_flags = ${rp2040_base.build_flags}
  8. -I variants/picow
  9. ; -D PICOW
  10. ; -D HW_SPI1_DEVICE
  11. -D SX126X_CURRENT_LIMIT=130
  12. -D RADIO_CLASS=CustomSX1262
  13. -D WRAPPER_CLASS=CustomSX1262Wrapper
  14. -D LORA_TX_POWER=22
  15. -D SX126X_RX_BOOSTED_GAIN=1
  16. build_src_filter = ${rp2040_base.build_src_filter}
  17. +<helpers/rp2040/PicoWBoard.cpp>
  18. +<../variants/picow>
  19. lib_deps = ${rp2040_base.lib_deps}
  20. [env:PicoW_Repeater]
  21. extends = picow
  22. build_flags = ${picow.build_flags}
  23. -D ADVERT_NAME='"PicoW Repeater"'
  24. -D ADVERT_LAT=0.0
  25. -D ADVERT_LON=0.0
  26. -D ADMIN_PASSWORD='"password"'
  27. -D MAX_NEIGHBOURS=8
  28. ; -D MESH_PACKET_LOGGING=1
  29. ; -D MESH_DEBUG=1
  30. build_src_filter = ${picow.build_src_filter}
  31. +<../examples/simple_repeater>
  32. [env:PicoW_room_server]
  33. extends = picow
  34. build_flags = ${picow.build_flags}
  35. -D ADVERT_NAME='"Test Room"'
  36. -D ADVERT_LAT=0.0
  37. -D ADVERT_LON=0.0
  38. -D ADMIN_PASSWORD='"password"'
  39. -D ROOM_PASSWORD='"hello"'
  40. ; -D MESH_PACKET_LOGGING=1
  41. ; -D MESH_DEBUG=1
  42. build_src_filter = ${picow.build_src_filter}
  43. +<../examples/simple_room_server>
  44. [env:PicoW_companion_radio_usb]
  45. extends = picow
  46. build_flags = ${picow.build_flags}
  47. -D MAX_CONTACTS=100
  48. -D MAX_GROUP_CHANNELS=8
  49. ; NOTE: DO NOT ENABLE --> -D MESH_PACKET_LOGGING=1
  50. ; NOTE: DO NOT ENABLE --> -D MESH_DEBUG=1
  51. build_src_filter = ${picow.build_src_filter}
  52. +<../examples/companion_radio>
  53. lib_deps = ${picow.lib_deps}
  54. densaugeo/base64 @ ~1.4.0
  55. ; [env:PicoW_companion_radio_ble]
  56. ; extends = picow
  57. ; build_flags = ${picow.build_flags}
  58. ; -D MAX_CONTACTS=100
  59. ; -D MAX_GROUP_CHANNELS=8
  60. ; -D BLE_PIN_CODE=123456
  61. ; -D BLE_DEBUG_LOGGING=1
  62. ; ; -D MESH_PACKET_LOGGING=1
  63. ; ; -D MESH_DEBUG=1
  64. ; build_src_filter = ${picow.build_src_filter}
  65. ; +<../examples/companion_radio>
  66. ; lib_deps = ${picow.lib_deps}
  67. ; densaugeo/base64 @ ~1.4.0
  68. ; [env:PicoW_companion_radio_wifi]
  69. ; extends = picow
  70. ; build_flags = ${picow.build_flags}
  71. ; -D MAX_CONTACTS=100
  72. ; -D MAX_GROUP_CHANNELS=8
  73. ; -D WIFI_DEBUG_LOGGING=1
  74. ; -D WIFI_SSID='"myssid"'
  75. ; -D WIFI_PWD='"mypwd"'
  76. ; ; -D MESH_PACKET_LOGGING=1
  77. ; ; -D MESH_DEBUG=1
  78. ; build_src_filter = ${picow.build_src_filter}
  79. ; +<../examples/companion_radio>
  80. ; lib_deps = ${picow.lib_deps}
  81. ; densaugeo/base64 @ ~1.4.0
  82. [env:PicoW_terminal_chat]
  83. extends = picow
  84. build_flags = ${picow.build_flags}
  85. -D MAX_CONTACTS=100
  86. -D MAX_GROUP_CHANNELS=1
  87. ; -D MESH_PACKET_LOGGING=1
  88. ; -D MESH_DEBUG=1
  89. build_src_filter = ${picow.build_src_filter}
  90. +<../examples/simple_secure_chat/main.cpp>
  91. lib_deps = ${picow.lib_deps}
  92. densaugeo/base64 @ ~1.4.0