if this is in the wrong place, could a mod move it or direct me to the correct place please.
Hi, I am fairly new to coding and am currently working through the arduino ide tutorials, some not all as i have just have a box of components left over from other electronic repairs (nothing fancy) an UNO and a mega 2560, I have made 2 full projects (if you will call them that) 1st was a basic temperate and humidity monitor with LCD + i added have started to implement a switch that will eventually stop or start a flow of water depending on the floating switch state
The other was the’O’ so cool adadlight (not brought as a kit) but with a string of 25 ws2081 leds that i purchased a while back for another project witch never got started.
Now my biggest issue is education, my attention span can be rather short but once I start in on something (understand it) I can’t help but push it forward a kind of A.D.D if you will.
the project.
My wife brought me one of these kits
http://www.ebay.co.uk/itm/371211776198?_trksid=p2059210.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
from ebay which i built with my daughter and had a load of fun, but after a week she asked me if i could get more patterns for it, so i dug a little deeper and eventually, managed to get the source code from the supplier and took a look, now this is my problem it seems way over my coding skill to figure out the actual portion of code where i edit or add the code to make new patterns this isn’t my 1st ledcube. I built a 4x4x4 cube a while back also with my daughter but i did not use shift registers or anything fancy just the basics and an arduino mega controlling it using the B0000 < depending on if it was a 0 or 1 turned on a led as most will know, but i can’t get my head around this code that i sourced, there is not many notes in the code, or poorly as they are chinese made, the cube uses the STC12C5A60S2, i have the hardware part sorted.
By using my uno as a serial programmer
bypassing the atmega 328p with reset to gnd and connecting the tx and rx to the right pin’s i was able to use the stc flashing program to send the original hex to the chip and do a few other basic test’s to assure a connection…
so the code, i will attach the 888.c file that i was given for someone to take a peak at and see if they can give me a laymens run down on how to configure my cubes patterns or even a way to loose the dedicated stc chip and put some headers in for arduino controls would be another option if anyone would like the schematics files for the cube just give me a shout and i’ll post them, also if you need help hooking the hardware side to program the stc i can help there
Thank’s in advance
Mike
888.c (37.4 KB)