mainboard stuff

This commit is contained in:
2025-03-19 14:00:35 -07:00
parent 246095e897
commit 4d6df52388
7 changed files with 149 additions and 0 deletions

25
mainboard/src/main.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include <Arduino.h>
#include <BleKeyboard.h>
#define ROWS 2
#define COLS 2
BleKeyboard bleKeyboard("ModularKeyboard_MainBoard");
void setup() {
Serial.begin(115200);
Serial.println("Starting BLE work!");
bleKeyboard.begin();
}
void loop() {
if(bleKeyboard.isConnected()){
for(int i=0; i < COLS; i++){
//TURN ON ROW
for(int j=0; j < ROWS; j++){
//READ EACH ROW
//ENABLE KEY IN THAT PIN
}
}
}
}