David Buezas

Results 381 comments of David Buezas

I'd also like to call delay and yield without passing those functions all the way down. I just tried what @thijse proposes and it seems to work just fine. >...

You can compare before and after with the `speed-meassure-webpack-plugin` ```js // craco.config.js const SpeedMeasurePlugin = require("speed-measure-webpack-plugin"); const CracoEsbuildPlugin = require("craco-esbuild"); const smp = new SpeedMeasurePlugin(); module.exports = { plugins: [{...

D2 is both bit 2 of PORTD, and bit 3 of port F. F3 can do pwm through Timer3, so this is probably not implemented in analogWrite yet. Good catch!

I think you are missing the following: * You are in CTC mode with OCR3A as top, but you are not setting it * `DDRD |= (0

Timers are pain to get right, but you are up for a treat, I'm close to releasing this: ![image](https://user-images.githubusercontent.com/777196/121401902-912f4a80-c959-11eb-9817-808aca1200ed.png) It's interactive so you can just click your way through it,...

follow the progress here: #164

Deployed: https://dbuezas.github.io/arduino-web-timers

I couldn't find anything on lock bits for this board in the datasheet

I see. But not only that, the board doesn't even go to sleep at all. I assume it gets woken back up. Maybe the analog comparator wakes it up?

**I played a bit and the lib is definitely not made for the 328p.** The PMU library uses the sleep command instead of the RRR register. It also switches the...