Pins
18 - SCK
23 - MOSI
19 -MISO
2 - D9 - CS (Note Pin naming is against pin number not D number)
3.3V
Gnd
Add Following to setup
#define GPIO_PIN 2
void setup(){
pinMode(GPIO_PIN, OUTPUT); // change this to 53 on a mega // don't follow this!!
digitalWrite(GPIO_PIN, HIGH); // Add this line
Also not VCC provides 5 V so can be used to power other 5V devices as long as the logic is 3.3V
No comments:
Post a Comment