diff options
author | Ben V. Brown <[email protected]> | 2021-04-26 22:22:32 +1000 |
---|---|---|
committer | Ben V. Brown <[email protected]> | 2021-04-26 22:22:32 +1000 |
commit | e84717765a52469908652d88f4ed2f7fad188271 (patch) | |
tree | 730c5ea8a0f7b7c10443d479945db067d0da8665 /source/Core/BSP/MHP30/fusb_user.cpp | |
parent | 8b65fa5d10c12d565b7455c1ceb88e999bb40045 (diff) | |
download | IronOS-e84717765a52469908652d88f4ed2f7fad188271.tar.gz IronOS-e84717765a52469908652d88f4ed2f7fad188271.zip |
Basic OLED working
* OLED
* Buttons
Diffstat (limited to 'source/Core/BSP/MHP30/fusb_user.cpp')
-rw-r--r-- | source/Core/BSP/MHP30/fusb_user.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Core/BSP/MHP30/fusb_user.cpp b/source/Core/BSP/MHP30/fusb_user.cpp index 96daf62a..726a2513 100644 --- a/source/Core/BSP/MHP30/fusb_user.cpp +++ b/source/Core/BSP/MHP30/fusb_user.cpp @@ -5,6 +5,7 @@ #include "Setup.h" #include "fusb302b.h" #include "fusb_user.h" +#include "Pins.h" /* * Read a single byte from the FUSB302B * @@ -53,7 +54,7 @@ bool fusb_write_byte(uint8_t addr, uint8_t byte) { * buf: The buffer to write */ bool fusb_write_buf(uint8_t addr, uint8_t size, const uint8_t *buf) { - return FRToSI2C::Mem_Write(FUSB302B_ADDR, addr, buf, size); + return FRToSI2C::Mem_Write(FUSB302B_ADDR, addr, (uint8_t*)buf, size); } uint8_t fusb302_detect() { |