Closed devramsean0 closed 3 weeks ago
That will build your code and link it into the BBOS image, but there's nothing calling your code yet. You'll need to add a dev node in cli/node_lib.c
That fixed it! Thanks :)
@devramsean0 , FYI, BBOS has hardware-abstracted interfaces for the RP2040 hw including SPI, as long as HW_USE_SPI0
is set to true
in hardware_config.h
(it is by default), it will initialize the pins at boot, and all you have to do is use the spi0_write_register()
and spi0_read_registers()
functions without worrying about any pin config stuff. Thanks for checking out the project!
Unfortunaly, it's using spi1 lol. That version of the driver code was wrong
Hi! I'm trying to use breadboard-OS to display some numbers on a 4 digit 8 segment display that uses a 74HC595.
I've added it to CMakeList, the device_drives.c file and the device_drives.h file in the same manner that both other examples are added. However, it never appears under lib/ like the others. Any ideas?
My code is below: