Bill Greiman

Results 756 comments of Bill Greiman

Protenta H7 ADC with the Arduino IDE is a disaster the driver is slow. You will never get close to reading 10 channels at 25KHz with this driver. This leaves...

The Protenta H7 Arduino IDE is a wrapper for the [mbed OS](https://os.mbed.com/). analogRead() calls the mbed AnalogIn::read_16() function. Here is an mbed program I used on a STM32H7 board to...

You may never get good results on Portenta H7. I have finally been able to use ChibiOS to get good results on with a Nucleo H743ZI2. I found that the...

You may need to declare value volatile. `volatile uint16_t value;` Also the H7 is quirky with RAM caches so if you use DMA, you may need to invalidate the CPU...

Which STM32 board support package are you using? There are several. I have not decided how to support STM32 so have not modified examples. At this point there are almost...

Yes, the ST package uses these constructors for all boards: ``` SPIClass(); SPIClass(uint8_t mosi, uint8_t miso, uint8_t sclk, uint8_t ssel = (uint8_t)NC); ``` I wrote the example when the only...

> Alternatively, just flag this as an area that the user needs to modify when modifying the code. I did flag it and tried to indicate with === to delimit...

You will need to provide more info. I ran the following: ``` #include "SdFat.h" SdFat sd; SdFile file; char buf[30]; void setup() { Serial.begin(9600); sd.begin(SS); file.open("test.txt"); size_t n = file.read(buf,...

I suspect you are using ESP32. New versions of the ESP32 often conflict with SdFat. About 12 years ago Arduino did a wrapper for SdFat and defined symbols FILE_WRITE, FILE_READ...

`istream& get(char& ch)` always return *this. `get(char& ch)` reads one character and stores it in ch if available otherwise, leaves ch unmodified and sets failbit. The [standard ](https://en.cppreference.com/w/cpp/io/basic_istream/get)says `get(char&)` should...