mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 12:19:49 +03:00
remove spi.begin
This commit is contained in:
@@ -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:");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user