mirror of
https://github.com/anklimov/lighthub
synced 2025-12-08 04:39: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
|
// 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
|
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
|
||||||
// or the SD library functions will not work.
|
// or the SD library functions will not work.
|
||||||
pinMode(chipSelect, OUTPUT); // change this to 53 on a mega
|
pinMode(chipSelect, OUTPUT);
|
||||||
SPI.begin(chipSelect); //but it didn'temp_DHT22 workt wiht it and whitout it [/b] // change this to 53 on a mega
|
|
||||||
|
|
||||||
if (!card.init(SPI_FULL_SPEED, chipSelect)) {
|
if (!card.init(SPI_FULL_SPEED, chipSelect)) {
|
||||||
Serial.println("initialization failed. Things to check:");
|
Serial.println("initialization failed. Things to check:");
|
||||||
|
|||||||
@@ -10,8 +10,8 @@
|
|||||||
[platformio]
|
[platformio]
|
||||||
src_dir = lighthub
|
src_dir = lighthub
|
||||||
env_default =
|
env_default =
|
||||||
; megaatmega2560
|
megaatmega2560
|
||||||
due
|
; due
|
||||||
|
|
||||||
[env:due]
|
[env:due]
|
||||||
platform = atmelsam
|
platform = atmelsam
|
||||||
@@ -59,6 +59,8 @@ lib_deps =
|
|||||||
https://github.com/knolleary/pubsubclient.git
|
https://github.com/knolleary/pubsubclient.git
|
||||||
https://github.com/anklimov/Artnet.git
|
https://github.com/anklimov/Artnet.git
|
||||||
FastLED
|
FastLED
|
||||||
|
161
|
||||||
|
322
|
||||||
|
|
||||||
[env:due-5500]
|
[env:due-5500]
|
||||||
platform = atmelsam
|
platform = atmelsam
|
||||||
|
|||||||
Reference in New Issue
Block a user