AYAB Arduino Firmware 0.95
The goal of the AYAB project is to provide an alternative way to control the famous Brother KH-9xx range of knitting machines using a computer
board.h
Go to the documentation of this file.
1
24#ifndef BOARD_H_
25#define BOARD_H_
26
27#include <Arduino.h>
28
29// Pin Assignments
30constexpr uint8_t EOL_PIN_R = A0; // Analog
31constexpr uint8_t EOL_PIN_L = A1; // Analog
32
33constexpr uint8_t ENC_PIN_A = 2;
34constexpr uint8_t ENC_PIN_B = 3;
35
36constexpr uint8_t ENC_PIN_C = 4;
37
38constexpr uint8_t LED_PIN_A = 5; // green LED
39constexpr uint8_t LED_PIN_B = 6; // yellow LED
40
41constexpr uint8_t PIEZO_PIN = 9;
42
43#ifdef DBG_NOMACHINE // Turn on to use DBG_BTN_PIN as EOL Trigger
44constexpr uint8_t DBG_BTN_PIN = 7; // DEBUG BUTTON
45#endif
46
47constexpr uint8_t I2Caddr_sol1_8 = 0x0U;
48constexpr uint8_t I2Caddr_sol9_16 = 0x1U;
49
50// Determine board type
51#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__)
52// Arduino Uno
53#else
54#error "untested board"
55#endif
56
57#endif // BOARD_H_
constexpr uint8_t I2Caddr_sol9_16
I2C Address of solenoids 9 - 16.
Definition board.h:48
constexpr uint8_t I2Caddr_sol1_8
I2C Address of solenoids 1 - 8.
Definition board.h:47