Poking I2C

This commit is contained in:
Ben V. Brown
2022-04-02 21:36:34 +11:00
parent 4cacc063d3
commit bf4e57f7a3
240 changed files with 91264 additions and 45415 deletions

View File

@@ -8,13 +8,17 @@
#include "BSP.h"
#include "Pins.h"
#include "Setup.h"
#include "bflb_platform.h"
#include "hal_gpio.h"
#include <I2C_Wrapper.hpp>
void preRToSInit() {
// Normal system bringup -- GPIO etc
// #TODO
bflb_platform_init(0);
hardware_init();
// gpio_bit_reset(OLED_RESET_GPIO_Port, OLED_RESET_Pin);
gpio_write(OLED_RESET_Pin, 0);
delay_ms(5);
// gpio_bit_set(OLED_RESET_GPIO_Port, OLED_RESET_Pin);
gpio_write(OLED_RESET_Pin, 1);
FRToSI2C::FRToSInit();
}