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 👍
@paulandrusyszyn91778 күн бұрын
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)
@ceptimus8 күн бұрын
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.
@paulandrusyszyn91778 күн бұрын
@@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.
@paulandrusyszyn91777 күн бұрын
@@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?
@ceptimus7 күн бұрын
@@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
@ceptimus7 күн бұрын
@@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