A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

1

The “commands” provided by the vendor are not code meant to be copied as-is. They are pseudocode. If you need to know the real difference between “write command” and “write data”, you have to look at the datasheet of the interface chip. See for example the ILI9481. On pages 28–29 you can see a data transfer mode compatible with SPI (type C interface, option ...


1

Ok i found the solution. It was not too complicated. I just assumed the problem was in the code. This works well enough (dont ask me about the counter--) unsigned short EKG_recording::count_files_from_SD() { root = SD.open("/"); root.rewindDirectory(); //Sets to beginning of directory while (true) { File entry = root.openNextFile(); if(!...


0

ESP-01 was designed as WiFi network adapter, not as a controller board. The are 4 pins on esp-01. RX (io 3), TX (io 1), io 0 and io 2. SPI requires 3 pins: clock, MISO, MOSI plus one pin for every device connected to the bus. So you could in theory use one SPI device on this 4 pins. The esp8266 Arduino SPI library works only with hardware SPI on esp8266 ...


0

The analogWrite function checks the PIN_ATTR_ANALOG attribute from pin description in variant.cpp to determine if the pin has DAC capability. Then it checks if the pin is ADC_Channel0 or DAC_Channel0. This is unnecessary and redundant. There is no other use for DAC_Channel0. In Arduino SAMD core and derived cores the pin 'map' in variant.cpp defines pin ...


Top 50 recent answers are included