Snippets

C program to calculate Swedish VAT for up to 20 items

Just a backup of a small C program that I use for invoicing. Only relevant to Sweden. https://www.programiz.com/online-compiler/6EGyjJgEXkxw0 This program generates text that I paste into an Illustrator document. The reason that I need something like this is that I’m not willing to pay for an invoicing program, invoices in Google Sheets look awful, and […]

Read More
Snippets

Arduino – Create UF2 Boot File for Adafruit Feather M4

On MacOS. For Adafruit Feather M4 Express or any other SAMD51 (M4) or SAMD21 (M0) board that has Adafruit UF2 Bootloader installed. Noob level! Fast-Track Here’s the fast-track reminder for an M4, if you already have everything installed: Background There are some instructions on how to do this. Adafruit, for example, has this page UF2 […]

Read More
Snippets

Arduino FastLED Library – a visual reference for the predefined colors

The FastLED Library for Arduino and other microcontrollers is used for controlling LED-strips with one to hundreds of individually addressable RGB LEDs. Here is a visual reference to the colors that are pre-defined within FastLED. In C++ they can be accessed by name, like this: The colors in this list appear in the same order […]

Read More
Snippets

Avrdude – Burn fuses (16 MHz clock out on CLK0 / B0)

Reason Fuses. There are a couple of user selectable operation modes of the AVR microcontrollers. The fuses can’t be edited in the same way you normally program you Arduino. You will need a hardware AVR programmer, ie the one described here: Arduino as ISP. There are a few GUI softwares that are supposed to do this, but I couldn’t get any of […]

Read More
Snippets

Avrdude – Upload hex file to Arduino using ISP / ICSP

Reason In some cases USB cannot be used to program (upload hex file to) a processor on an Arduino board. One such case is when you are targeting the second processor on an Arduino Uno, the ATMega16u2 whose sole purpose is to cater for USB communication. Please note: Only the original style Arduino Uno R3 boards […]

Read More

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.