STM8L template updates!

I’ve made some update to the stm8L template, The updates including

  • USART is working ! with the example code !!!
  • Also made the configurable USART speed in usart_init();
  • I added my new little library call “dev_id” for reading Device Unique ID (according to datasheet), as well as example code
  • I also ported the TIM4 delay and made example (the delay with TIM4 originally coded by Shawon Shahryiar on This delay will soon replace original delay. This one way more precise (soon will make one compatible with external clock source)
  • added LEDring code, soon will replace the AVRingLED project.
  • changed the CPU speed to 16MHz at default

I will made more update (Incuding Hardware SPI , I2C, BEEP and some IrDA (SIR) Things! So please calm down and wait me done my stuff. I won’t make you disappointed 😀

Link goes here 

TI-82 calculator !

Yesterday (2020/2/2) I received my Graphing calculator from Denmark , but that is not t he point. It’s TI-82 calculator. The USER-FRIENDLIER TI-85. Although, the online world in 2020 still lack of the useful Information and modification, But I found on the ticalc and someone made the TI-link compatible cable (Black link compatible) and someone had jammed the EL backlight for illuminating the screen !, So in think 2 months of vacation, I would like to make it better by adding EL backlight and made my own TI-link the linking cable ! and here is a bit of some photos I took.

So I will put some link down below for the PCBs order link from OSHpark. (Will include github repo as well on that link)

SerialLink (My TI-link clone)


Project Aut0rien almost done !

After few days I came across the idea about to put the accelerometer sensor (ADXL335) into the laptop for detection the rotation of the screen using the Earth gravitation acceleration. reading the x and y axis from the ADC (ADS1115) connected to the I2C port (VGA — i2c-1) using the compiled binary from C to run on the pc at the boot. but I’ve been waiting for the sensor module to arrive. maybe soon I will make some video on Youtube.

Project Aut0rient. Integrate gyro in to the laptop’s display to detect the orientations

I’ve an idea if I can auto rotate my laptop screen like the 2 in 1 pc or the tablet pc. and I remember that I can personalize my ATECC508A through the i2c bus on my VGA port ! I also detect the i2c channel call “panel” by i2cdetect (part of i2ctools on linux). I though that’s the address of EEPROM* chip in my laptop’s display. The plan is

  1. tear down entire display to get to the display panel
  2. locate the EEPROM* chip and find the pinout
  3. jam the MPU6500 gyro sensor into the same i2c line with the EEPROM
  4. put everything back together
  5. coding

after these steps. I will use the linux driver and the code from someone on Github ( did made for beaglebone) combine with my code and use ” system(xrandr and other options);” to invoke the xrandr to rotate the screen.

Note : this is the concept. might works only on linux because the kernal and driver is very friendly to me ( not like the windows) so the code will compiled to be binary and run this as the start.

*EEPROM contain INFOs about the display like resolutions and other stuffs like manufacture code, product number, serial number.

Install QEMU 4.0 on Xperia X (jolla sailfish) with nix 2.0

Hello everyone. greeting from TinLethax after long time no see. in this post is about to run QEMU 4.0 on my Xperia X which is currently running linux ( The Jolla’s sailfish os). First of all you need to installed the ” sudo ” for sailfish os ( you can do this by just search in google).  Then run this command as nemo ( normal user).

curl | sh

after this. exit your terminal and then get in again. Then type

nix-shell -p qemu

nix will download the latest pre-compiled binaries for aarch64 (our cpu architecture ;D). then the teminal hostname and user will change to the green ” nix-shell ” text. next thing you need to do to permanently create the symlinks is

nix-env -i qemu

It’s took a while to symlinked everything. Then you try to exit the nix shell session by invoke


the you’ll back to nemo session. type


then press tab button until the terminal listed all executable ” qemu ” stuffs including the i368 and x86_64 emulator !

after this don’t forget to add -v :your_port at the end of option of the qemu before your launch because wayland / X is not supported for this case we need the vnc viewer. I my case I use the vnc viewer running on android container (alien) .