remove spi.begin

This commit is contained in:
livello
2018-03-15 07:03:44 +03:00
parent 59102a323d
commit 46ea58a457
2 changed files with 5 additions and 4 deletions

View File

@@ -148,8 +148,7 @@ void sd_card_w5100_setup() {
// Note that even if it's not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.
pinMode(chipSelect, OUTPUT); // change this to 53 on a mega
SPI.begin(chipSelect); //but it didn'temp_DHT22 workt wiht it and whitout it [/b] // change this to 53 on a mega
pinMode(chipSelect, OUTPUT);
if (!card.init(SPI_FULL_SPEED, chipSelect)) {
Serial.println("initialization failed. Things to check:");

View File

@@ -10,8 +10,8 @@
[platformio]
src_dir = lighthub
env_default =
; megaatmega2560
due
megaatmega2560
; due
[env:due]
platform = atmelsam
@@ -59,6 +59,8 @@ lib_deps =
https://github.com/knolleary/pubsubclient.git
https://github.com/anklimov/Artnet.git
FastLED
161
322
[env:due-5500]
platform = atmelsam