| @ -0,0 +1,30 @@ | |||||
| #ifndef VISCACONTROLLER | |||||
| #define VISCACONTROLLER | |||||
| #include <Arduino.h> | |||||
| #include <EEPROM.h> | |||||
| #include <LiquidCrystal_I2C.h> | |||||
| #include <SoftwareSerial.h> | |||||
| #define PAN 0 | |||||
| #define TILT 1 | |||||
| #define ZOOM 2 | |||||
| #define AUX1 3 | |||||
| #define AUX2 4 | |||||
| #define AUX3 5 | |||||
| #define VISCARX 2 | |||||
| #define VISCATX 3 | |||||
| #define BTN1 4 | |||||
| #define BTN2 5 | |||||
| #define BTN3 6 | |||||
| #define BTN4 7 | |||||
| #define BTN5 8 | |||||
| #define BTN6 9 | |||||
| #define BTN7 10 | |||||
| #define BTN8 11 | |||||
| #define BTN9 12 | |||||
| #define BTN10 13 | |||||
| #endif | |||||
| @ -0,0 +1,20 @@ | |||||
| #include "visca-controller.h" | |||||
| LiquidCrystal_I2C lcd(0x27,16,2); | |||||
| SoftwareSerial visca(VISCARX, VISCATX); | |||||
| void setup() { | |||||
| Serial.begin(9600); | |||||
| while (!Serial) { | |||||
| ; // wait for serial port to connect. Needed for native USB port only | |||||
| } | |||||
| for (uint8_t i = 2; i <= 12; i++) { | |||||
| pinMode(i,INPUT); | |||||
| } | |||||
| } | |||||
| void loop() { | |||||
| } | |||||