Use avr libraries and pin definitions

parent 0211f414
Pipeline #2920 canceled with stage
#include <Arduino.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#define MASTER_ADDR 15
#define SLAVE1_ADDR 13
#define SLAVE2_ADDR 14
uint8_t ADDR;
#define LED_PIN PB5 // 13
#define ADDR3_PIN PB3 // 11
#define ADDR2_PIN PB2 // 10
#define ADDR1_PIN PB1 // 9
#define ADDR0_PIN PB0 // 8
#define BUT1_PIN PD7 // 7
#define BUT2_PIN PD6 // 6
#define WREN_PIN PD2 // 2
#define LED_PIN 13
#define ADDR3_PIN 11
#define ADDR2_PIN 10
#define ADDR1_PIN 9
#define ADDR0_PIN 8
#define BUT1_PIN 7
#define BUT2_PIN 6
#define WREN_PIN 2
#ifndef F_CPU
#define F_CPU 16000000ul
#endif
#define BAUD_R 9600
void asynch9_init(long BAUD) {
// put your code here, to setup asynchronous serial communication using 9 bits:
......@@ -36,6 +41,7 @@ void setup() {
// put your setup code here, to run once:
}
void loop() {
int main(void) {
// put your main code here, to run repeatedly:
return -1;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment