1
0
forked from me/IronOS

Setup template

This commit is contained in:
Ben V. Brown
2022-04-12 19:22:43 +10:00
parent 81a36eb2cf
commit fbdbe4fcbf
4 changed files with 7 additions and 9 deletions

View File

@@ -22,11 +22,9 @@ uint16_t ADCReadings[ADC_NORM_SAMPLES]; // room for 32 lots of the pair of readi
// Functions
void hardware_init() {
// #TODO
gpio_set_mode(OLED_RESET_Pin, GPIO_OUTPUT_MODE);
gpio_set_mode(KEY_A_Pin, GPIO_INPUT_PD_MODE);
gpio_set_mode(KEY_B_Pin, GPIO_INPUT_PD_MODE);
I2C_SetPrd(I2C0_ID, 15);
// gpio_set_mode(KEY_A_Pin, GPIO_INPUT_PD_MODE);
// gpio_set_mode(KEY_B_Pin, GPIO_INPUT_PD_MODE);
}
uint16_t getADCHandleTemp(uint8_t sample) {