Skip to content

Commit 4cce26f

Browse files
author
Ioannis Charalampidis
committed
Adding reference arduino wiring
1 parent 8dd3100 commit 4cce26f

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

Arduino/CCLib/Examples/CCLib_proxy/CCLib_proxy.ino

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,25 @@
3030
(C) Copyright 2015, Simon Schulz - github.com/fishpepper
3131
///////////////////////////////////////////////////////////////////////////////
3232
*/
33+
34+
////////////////////////////////////////
35+
////////////////////////////////////////
36+
37+
// Pinout configuration (Configured for Arduino Leonardo)
38+
int CC_RST = 2;
39+
int CC_DC = 3;
40+
int CC_DD_I = 4;
41+
int CC_DD_O = 5;
42+
43+
// Change this if you are using an external led
44+
int LED = LED_BUILTIN;
45+
46+
////////////////////////////////////////
47+
////////////////////////////////////////
3348

3449
// Include the CCDebugger
3550
#include <CCDebugger.h>
3651

37-
// Pinout configuration (Configured for Teensy 2.0++)
38-
int LED = 6;
39-
int CC_RST = 5;
40-
int CC_DD_I = 45;
41-
int CC_DD_O = 38;
42-
int CC_DC = 17;
43-
4452
// Command constants
4553
#define CMD_ENTER byte(0x01)
4654
#define CMD_EXIT byte(0x02)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ For the DC Pin:
3030
3131
For the RST Pin:
3232
33-
<CC_DC> --[ 100k ]-- {RST} --[ 200k ]-- <GND>
33+
<CC_RST> --[ 100k ]-- {RST} --[ 200k ]-- <GND>
3434
```
3535

36-
Where `{DD}`, `{DC}` and `{RST}` are the pins on the CCxxxx chip.
36+
Where `{DD}`, `{DC}` and `{RST}` are the pins on the CCxxxx chip and `<CC_DD_O>`, `<CC_DD_I>`, `<CC_DC>`, `<CC_RST>` are the pins in your ardiuno board.
3737

3838

3939
### 2. Prepare your software

Schematic/arduino-wiring.png

200 KB
Loading

0 commit comments

Comments
 (0)