MCU
Loading...
Searching...
No Matches
main_spi_test.cpp
Go to the documentation of this file.
1#include <SPI.h>
2#include "MCP_ADC.h"
3const int SS_PIN = 34; // assuming MOSI 11, MISO 12, SCK 13
4
5
6MCP_ADC<8> a1 = MCP_ADC<8>(34);
7MCP_ADC<4> a2 = MCP_ADC<4>(33);
8MCP_ADC<4> a3 = MCP_ADC<4>(29);
9
10
11void setup()
12{
13 SPI.begin();
14 a1.init();
15 a2.init();
16 a3.init();
17}
18
19void loop()
20{
21 Serial.println("looped");
22 a1.tick();
23 a2.tick();
24 a3.tick();
25}
void setup()
const int SS_PIN
MCP_ADC< 4 > a2
MCP_ADC< 8 > a1
MCP_ADC< 4 > a3
void loop()