arduino stuff

This commit is contained in:
Kevin Santo Cappuccio 2023-06-25 15:57:15 -07:00
parent e9a67e7e7d
commit cb02a508f4
4 changed files with 69 additions and 1 deletions

View File

@ -0,0 +1,35 @@
#include "CH446Q.h"
#include "MatrixStateRP2040.h"
#include "NetsToChipConnections.h"
#include "LEDs.h"
#include "Peripherals.h"
#include "JumperlessDefinesRP2040.h"
#include "ArduinoStuff.h"
#include <Arduino.h>
SerialPIO ardUart(0, 1, 64);
void initArduino (void)
{
//Serial1.setRX(0);
//Serial1.setTX(1);
pinMode (1, OUTPUT);
pinMode (0, INPUT);
ardUart.begin(115200);
ardUart.println("hello from arduino");
}
void arduinoPrint (void)
{
ardUart.println("fuck");
}

View File

@ -0,0 +1,24 @@
#ifndef ARDUINOSTUFF_H
#define ARDUINOSTUFF_H
void initArduino(void);
void arduinoPrint(void);
#endif

View File

@ -1,6 +1,7 @@
#ifndef CH446Q_H
#define CH446Q_H
void initCH446Q(void);
void sendAllPaths(void); // should we sort them by chip? for now, no

View File

@ -11,6 +11,7 @@
#include <Wire.h>
#include <Adafruit_MCP4725.h>
#include <EEPROM.h>
#include "ArduinoStuff.h"
//https://wokwi.com/projects/367384677537829889
@ -21,7 +22,8 @@ const char *definesToChar(int); // i really need to find a way to not need to fo
void setup()
{
EEPROM.begin(256);
initArduino();
debugFlagInit();
initCH446Q();
initADC();
@ -99,9 +101,15 @@ void loop()
char input;
unsigned long timer = 0;
//initArduino();
//
menu:
arduinoPrint();
Serial.print("\n\n\r\t\t\tMenu\n\n\r");
Serial.print("\tn = show netlist\n\r");
Serial.print("\tb = show bridge array\n\r");