Skip to content

Commit

Permalink
using sx1262 lib in BITSv5 now, also more submodule decrustification
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Shipman committed Dec 10, 2023
1 parent dcd0b65 commit 4a5491b
Show file tree
Hide file tree
Showing 2,362 changed files with 50,138 additions and 51,175 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
[submodule "Code/BITS/BITSv5/test/littlefs"]
path = Code/BITS/BITSv5/test/littlefs
url = https://github.com/littlefs-project/littlefs.git
[submodule "Code/XbeeJoint/pico-sdk"]
path = Code/XbeeJoint/pico-sdk
[submodule "Code/Not_XbeeJoint/pico-sdk"]
path = Code/Not_XbeeJoint/pico-sdk
url = https://github.com/raspberrypi/pico-sdk.git
branch = master
[submodule "Code/libraries/rp2040-drf1262-lib"]
Expand Down
Binary file modified Code/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions Code/BITS/BITSv5/test/BITSv5.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
#define SDA_PIN 20
#define SCL_PIN 21

#define INCLUDE_DEBUG \
1 // controls if debug conditionals are included at compile time

extern short debug_msgs; // controls if debug messages are printed

#endif
4 changes: 2 additions & 2 deletions Code/BITS/BITSv5/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ pico_sdk_init()

add_executable(test
test.cpp
SX1262.cpp
../../../libraries/rp2040-drf1262-lib/SX1262.cpp
MS5607.cpp
)

pico_enable_stdio_usb(test 1)

pico_add_extra_outputs(test)

target_link_libraries(test pico_stdlib hardware_flash hardware_sync hardware_spi hardware_i2c)
target_link_libraries(test pico_stdlib hardware_flash hardware_sync hardware_spi hardware_i2c pico_unique_id pico_rand)
2 changes: 1 addition & 1 deletion Code/BITS/BITSv5/test/MS5607.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ uint8_t* ms5607_read_prom(uint8_t* buf) {
}

uint8_t* ms5607_conversion(uint8_t* buf) {
uint8_t cmd = MS5607_CONV_CMD;
uint8_t cmd = MS5607_PRESS_CONV_CMD;

i2c_write_blocking(i2c_p, MS5607_ADDR, &cmd, 1, false);

Expand Down
Loading

0 comments on commit 4a5491b

Please sign in to comment.