STM8 DISCOVERY – 7segment serial link (2)

PIC 16f884 LED display posted by (C)takao21203 Using a PIC 16f884 here to test some new ideas. All the I/O bits are now freely mapable from tables. The TRISTATE is computated by the firmware.Actually these small displays are not very bright- or maybe there is a mysterious bug. STM8 circuit posted by (C)takao21203 Added some shuttle boards to the STM8 … Continue reading

STM8 DISCOVERY – 7segment serial link (1)

stm8 board posted by (C)takao21203 This is a STM8 Discovery board. I have added a PIC 16f884 and a small 7segment display. I want to program a serial link between the two controllers. Later, a display will be connected to the STM8 chip directly. However, I have some ideas to improve the 7segment decoding/driving, and it is easier to test … Continue reading

obscure and ancient graphics card for IBM PC

I wrote a small C program for this graphics card. It is a CGA model which was used in early 1980s! After a while it really works. A lot of effort is required to set a single pixel. 320×200 in 4 colors… Borland C++ is used but this program is just plain C language. Tables are used to set and … Continue reading

first test, 32×24 LED matrix, 16f59

LED matrix – 16 brightness levels! It is all done in software. 4.5 Million machine cycles/each second. Each LED processed individually…and repeating continuously. Maxing out these 16f59 chips pretty much. First successfull test today. Todo: serial double buffering. Replicate the circuit 8 times. A lot of work to do. 2. Wire up the 32 bits master controller. Write some software … Continue reading

C language – Dereference cast

Original C language used typecasts, for instance: pointer to const pointer to const unsigned char -> pointer to const unsigned char Modern Windows C is using an array of object orientated techniques to virtualize, and provide generic templates. There are for instance different copy constructors, which can do primitive conversion between value and number. There are new pointer types such … Continue reading

game prototype (3)

One line of code will add a copy of a building to the treelist on the right side, including all child nodes! I somehow derived the idea not to write code for this functionality, but establish correlations using the Visual Studio Designer. It worked! In the end, buildings will be shown on the map, using the data from the treelist. … Continue reading