Add libraries, picocalc notes.

This commit is contained in:
2025-04-01 18:28:52 -07:00
parent 1c3052c977
commit e77a69ce91
598 changed files with 475037 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#include <PCKeyboard.h>
#define CARD_DET 1
PCKeyboard keyboard;
int prevValue = LOW;
void setup()
{
Serial.begin(9600);
Wire.setSDA(4);
Wire.setSCL(5);
Wire.begin();
Wire.setClock(10000);
keyboard.begin();
keyboard.pinMode(CARD_DET, INPUT);
keyboard.digitalWrite(CARD_DET, HIGH); // Enable pull-up
}
void loop()
{
const int value = keyboard.digitalRead(CARD_DET);
if (value == prevValue)
return;
Serial.printf("Card Detect: %d \r\n", value);
prevValue = value;
}