I²C is great.When it works.I've been doing a lot of work on the controller-module communication—and, while doing so, I've learned a lot.The Raspberry Pi I²C implementation would be a lot better if it had support for clock stretching.(I probably...
Use the TivaWare peripheral library to get PWM working on the Tiva C launchpad: http://www.ti.com/tool/sw-tm4cI made an example of dimming LEDs that can be complied with GCC: https://github.com/szczys/tiva-c-launchpad-hardware-pwm/blob/master/main.cSpecific...
Setting Up the Toolchain You will need a PIC programmer to write your own HEX files onto the badge. PICkit 3 and PICkit 4 have both been tested to work as programmers via the pin header on the badge. The BASIC badge is based around a PIC32MX370F512H....
Setting Up the Toolchain You will need a PIC programmer to write your own HEX files onto the badge. PICkit 3 and PICkit 4 have both been tested to work as programmers via the pin header on the badge. The BASIC badge is based around a PIC32MX370F512H....
MSP430G2553 programming with a Hello World code. C++ on IAR Embedded Workbench. Code here: // Basic MSP430 Hello World #include "msp430G2553.h" #define G_LED BIT6#define R_LED BIT0 int i,j,delay; void delay_time(int);void delay_long(int);...
I didn't like how the down-facing strip lights were looking, so I modeled and printed a new ring light. It printed in two pieces. The white part is a PLA box with a .2mm bottom which acts as a diffuser, and there is a black PLA bottom with a foil...
I made a new (kind of) port of a compiler for Lion32. This time it's the lcc. I compile the intermediate bytecode that a version of lcc produces to Lion32 assembly. The bytecode is intended for a virtual machine environment but it fits me nice. Now I...
Display something (with SPI library) V0.1 is just to do the bare minimum in C to just light a few dots on the display. That was easy and took only "a few minutes". /* PONG in C V0.1 - just display something */ #include // H/W uses pin 13, 12, 11,...
I've spent the past 2 days setting up Marlin and TouchScreenFirmware. I decided to try and set it up for the dual heater zone strategy just to see if it could even be done before I bothered to actually go down that path.Here are the shownotes of things...
This suprisingly took even more effort than the ButtonRing and I got a lot more help from BingChat this time around. Essentially, I wanted to replace the simple method with one that waited until it was sure both the real and imaginary components...
2 days ago, whilst thinking of possible ways to obtain better precision and accuracy, I got the idea to have a small part of the range used for "absolute movement". So, instead of a trackpoint, it'll act more like an optical sensor seen on small...
Use your badge as a flashlight with 'lumos' This tutorial walks through the following: Find out how to do something on the badge, by looking at implementation details of a related existing BASIC command.Look at three ways to trigger the new code:Add...
Handel-C is a language related to C and Occam, designed for the purpose of translating programs directly into hardware. Handel-C was available and in use about 10-20 years ago, I'm not sure whether anybody still uses it now. Originially developed and...
The USB Type-C spec defines a much simpler mechanism than Power Delivery for ports to advertise their current capability. Type-C Current works by just putting a different pull-up resistor on the CC line of the Type-C connector to indicate different source...
I learned something awesome this week!TLDR: If you're using a Female-Female / Receptable-Receptacle (abbreviated R-R going forward) USB-C adapter, USB-C cables get a 'Top' and 'Bottom' side, and the connection will only work if all cables and adapters...