create scaffolding for i2c slave code

This commit is contained in:
Mitchell Marino 2025-03-24 18:45:37 -05:00
parent 4f2d9dbfb4
commit 0805b387ee
3 changed files with 11 additions and 4 deletions

2
src/i2c_slave.c Normal file
View File

@ -0,0 +1,2 @@
#include "i2c_slave.h"

8
src/i2c_slave.h Normal file
View File

@ -0,0 +1,8 @@
#ifndef I2C_SLAVE_H
#define I2C_SLAVE_H
#include <ch32v00x.h>
#endif /* I2C_SLAVE_H */

View File

@ -106,8 +106,5 @@ void NMI_Handler(void) {
void HardFault_Handler(void)
{
SendNeoPixelColor(0, 255, 0);
while (1)
{
}
while (1);
}