Category: Programming

Everything about programming

Avoiding Mysterious, Silent Failures of Your Arduino Sketch: Push PROGMEM to the far end

Have you ever used an Arduino Mega 2560 (or a similar board) and, at some point in the development process, experienced the LED mysteriously stopping to blink, garbled text being printed, or funny artifacts appearing in pictures? And all that without any apparent reason or any error or warning message? If you want to know what is behind it and how to solve this problem, read on.

Continue reading

Replacing the Wire Library—Sometimes

The Wire library is the one that connects your Arduino to sensors and actuators that communicate using the I2C protocol. Unfortunately, this library has a lot of shortcomings, and often you want to replace it with a different I2C library. Replacing the Wire library on a per-sketch basis turns out to be more complicated than one would expect. In this blog post, I describe an easy way to accomplish that.

Continue reading

Copyright © 2026 Arduino Craft Corner

Theme by Anders NorenUp ↑