Hourglass LED kit. Code to use as an actual timer, for (e.g.) boiling eggs.

  Рет қаралды 279

ceptimus

ceptimus

Күн бұрын

Пікірлер: 11
@GrandadsOtherChannel
@GrandadsOtherChannel 19 күн бұрын
Another excellent project. Your blog is very inspiring. Maybe I will have a go myself sometime, but for now I am happy to watch your work 👍
@paulandrusyszyn9177
@paulandrusyszyn9177 8 күн бұрын
This is great. I finally got my 8x8x8 LED cube reprogrammed and I've tried out all of yours and rick100 programs for the hourglass. I want to try reprogramming RGB star but having trouble compiling the code that was provided. Wondering if you might be able to help. (re-comment from earlier, without a link)
@ceptimus
@ceptimus 8 күн бұрын
Happy to help. One thing that might be stopping it compiling is that the later versions of SDCC require you to put parentheses () around the interrupt and using parameters - the earlier version would compile with just the naked numbers.
@paulandrusyszyn9177
@paulandrusyszyn9177 8 күн бұрын
@@ceptimus I think it's something wrong with the code I got from the QR code that came with the kit instructions. I created my batch file as you showed: set PATH="C:\SDCCFILES\50RGBLEDStarMin\bin";%PATH% sdcc -mmcs51 --code-size 4088 --opt-code-size --verbose 50RGBLEDStar.c -o 50RGBLEDStar.ihx packihx 50RGBLEDStar.ihx > 50RGBLEDStar.hex pause but the errors are as follows: sdcc: Generating code... STC15F2K.h:21: warning 278: return type of function omitted, assuming int STC15F2K.h:21: error 1: Syntax error, declaration ignored at 'sfr' STC15F2K.h:21: syntax error: token -> 'P0' ; column 6 50RGBLEDStar.c:9: fatal error: when writing output to : Broken pipe I tried swapping out the STC15F2K.h with some other .h files unsuccessfully.
@paulandrusyszyn9177
@paulandrusyszyn9177 7 күн бұрын
@@ceptimus I couldn't get the header file that matched with the code I had so I started over with 8051.h and used the old .c file as a template. I worked out all of the sbits that correspond to all of the diode pairs except for the D29 and D30 pair. Which on a stc15w408as looks like it is pin 13 or P5.5 based on the schematics I've seen. Your thoughts on how to find the missing sbit?
@ceptimus
@ceptimus 7 күн бұрын
@@paulandrusyszyn9177 I don't have that kit, and I've not got the source files. Can you send me a download link, or email the files to me, and I'll see if I can get them to compile. ceptimus@ceptimus.co.uk
@ceptimus
@ceptimus 7 күн бұрын
@@paulandrusyszyn9177 __sfr __at (0xC8) P5; __sfr __at (0xC9) P5M0; __sfr __at (0xCA) P5M1; You can manipulate individual bits in the P5 register with the normal |= and &= to set or reset a bit or ^= to toggle. To set P5.5 it would be P5 |= (1
Electronic Basics #30: Microcontroller (Arduino) Timers
9:19
GreatScott!
Рет қаралды 442 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 14 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 13 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 942 М.
FastLED Basics Episode 1 - Getting started
17:59
Scott Marley
Рет қаралды 288 М.
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 4,6 МЛН
This tiny computer changes EVERYTHING
15:57
Jeff Geerling
Рет қаралды 837 М.
Sliding block puzzles for my picocomputer RP6502
10:15
ceptimus
Рет қаралды 219
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 474 М.
PIC12F675 Assembly, with TM1638 display.
7:34
ceptimus
Рет қаралды 328
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 14 МЛН