Category Archives: Programming
Nucleo L476RG + Platform IO Blink Example

2025/08/24
Micropython燒程式落stm32, reboot會無哂
https://github.com/issues/created?issue=micropython%7Cmicropython%7C17828解決辦法就係加呢兩句係main.py頭import pybpyb.usb_mode('VCP+HID') 2025/08/05
WEACT blackpill stm32f411ceu6 virtual com port

2025/08/02
Weact STM32 H750 board use serial port via usb

Unlike nucleo to user serial port via usb by just enabling the uart. We have to enable VCP in weact H750 board. Reference: https://blog.csdn.net/Naisu_kun/article/details/118192032 2025/08/01
Java swing embed a website

2025/07/30
Weact STM32H750 DMA Reg-To-Mem example

Few things need to be care and different then STM32F411CEU6 Gitlab source https://wiki.st.com/stm32mcu/wiki/Getting_started_with_DMA 2025/07/23
Solved: Weact STM32H750VBT6 unable to find target

I changed the clock to maximum 480Mhz, after I F5 for the first time, I unable to burn any program to it again. To solve this, press both reset and boot buttons on the board, click F5 in STM32CubeIDE, then release reset button (still hold the bott button). It will successfully burn the program again. […] 2025/07/23
Waveshare-ESP32-C6-1.47-Touch + Micropython + LVGL

Special Thanks to Mr kdschlosser for writing the driver More Examples on https://github.com/quantrpeter/Waveshare-ESP32-C6-1.47-Touch-Micropython-LVGL Example: 2025/07/06
Waveshare ESP32-C6-Zero + LVGL + ST7735S

https://www.waveshare.com/wiki/ESP32-C6-Zero 2025/07/03
ESp32 Arduino LED Example

https://item.taobao.com/item.htm?_u=vbuhab0c8fc&id=692235616325&pisk=gfaLsUj6M1dLBGaKsWSMEFEN3lfGiGVU_JPXrYDHVReTeSd3x0DoV4e4H0TlY2m-yRMg-vVnRbi7E-ZndkDkyzeapeYoR8b-FSrNavc3-Qh7fJLuxWD3XQ3USkYoK9u8N-0RntbcoWPE846cnxid94gjO3OBEYg614c8jWtHGWPEzYOMFiq_TQhdgwAINY1t5bhIO4MINF1twb9IPviWChGjC4gSA0t_1jcXApMWA1KstbcWRXGS5hGSZHgSP8N16bksO4gS9i5KQBGpyo2QH1YJL2LWPPhKfiViCiyQJXhnnWapBddr9DHbOAB4G69Z2JnLSwpq9lNYiXePueuI2kwK14QJ72VYfJnTvTLtblN4PcENHnP4OowSKP6XyYq4JomqAILY68UtRAUPaUkQx7ao2y6XZvaUKPn4zpBiEoVgRcefIFer2kwK1qsPZr4xT7vmHbxC61Ky4DGw7oIF1mRpfIltn6iB43oo_fHc6tty4DGZ6xfB_3-rqf5..&spm=a1z09.2.0.0.20712e8dhZRCRN (Set to 115200, otherwise upload will fail) 2025/05/31
Tutorial: MicroPython + LVGL for ESP32-C6-LCD-1.47

This is the tutorial to compile micropython with LVGL and burn it into the board Steps: If success, you should see this Open thonny and run Then you will see Links you should read https://www.waveshare.com/wiki/ESP32-C6-LCD-1.47 https://github.com/lvgl-micropython/lvgl_micropython Remark: This program is a little bit crazy, first time you run it will success, but if you run […] 2025/04/14
Tutorial to setup RF-Nano

https://item.taobao.com/item.htm?_u=ibuhab0bb1b&id=628418040642&spm=a1z09.2.0.0.76e02e8dYbXP6k 2024/12/18
STM32 + DHT11 example

https://gitlab.com/peter-example/stm32/thei-stm32-demo-stm32f411ceu6 2024/12/18
PhpIsDead framework init idea

2024/11/18
How laravel can inject function to object in their ORM

The technique they have used are "trait", "magic function" and "call_user_func_array". The whole thing work in runtime, not compile time. 1. Php trait PHP trait is just like copy and paste the code from trait into the injected class. 2. Magic function When calling a not exist function, the __call function will be called. Laravel […] 2024/11/17
This book is totally outdated

This book is totally outdated because the official facebook PHP SDK is already deprecated. Now we should go for facebook javascript SDK 2024/10/31
如果想知道容器嘅原理

如果想知道容器嘅原理,我圈起左 2024/07/01
Simplest standalone ApacheDS server

This code run a standalone ApacheDS server, you can use ApacheDS studio to connect to it, it host localhost:10389 pom.xml Then you can connect it by ApacheDS Studio 2024/06/09
How to make your netbeans more beautiful

Set to a better font size 4. Set the color 2024/04/27
Quantr Dwarf Library - Print address/lineNo/ColNo from specific address
2024/04/07
Linear Regression in java
2024/02/14
Latest SPFx, web parts not appear

Using latest SPFx with node v18, pack and deploy the app no error, but web parts not appear, because you missed this. When you upgrade your SharePoint project, beware of this 2024/01/12
Netbeans programmatically add watch expression to the "watch window"
use this code pom.xml 2024/01/05
WordPress Theme to support post-views-counter

To make the plugin works, need to call wp_footer() in footer.php 2023/12/04
syscall.c for STM32 + XCubeAI
2023/10/25
Funny lesson today to build few 8-bit registers

Teaching teens for electronics is a rewarding and fulfilling experience. Electronics is a fascinating field that combines creativity, logic, and problem-solving. By teaching teens for electronics, you can help them discover the joy of learning new skills, creating useful devices, and exploring the world of technology. You can also inspire them to pursue their passions, […] 2023/08/17
COSCUP 2023

多謝hkcota同oshk安排, 今次台灣可以係coscup 2023講個talk實在開心. 2023/08/07
PNP create a new list get 403 access denied
Create a new list in SPO via PNPjs will get 403 access denied, run this script to solve it 2023/03/20
Load jar and dynamically create object from it
Two maven project, project A load the project B jar, create the object dynamically and invoke the method Project A: Project A: Project B: 2023/03/17
WordPress Component

To redesign our first app engine, we reference WordPress. This is its loading sequence https://medium.com/@dendeffe/wordpress-loading-sequence-a-guided-tour-e077c7dbd119 2022/09/10
Change SP list into MS list

just add "?env=WebViewList" at the end of URL 2022/08/25
Very good micro python board

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.15412e8duBDI2J&id=645704746945&_u=mbuhab0da05 2022/08/22
Very good lucene book in cityu library

2022/08/21
Tiny STM32 board (STM32F103C8T6)

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8ddznHy0&id=630403001847&_u=gbuhab04cbb STM32F103C8T6 2022/08/16
Great ByteBuddy tutorial

refer to https://blog.csdn.net/wanxiaoderen/article/details/106544773 2022/07/02
Solved: SharePoint 2019 ERR_HTTP2_PROTOCOL_ERROR
Navigate to the registry key 2.HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters. Add 2 new REG_DWORD values, EnableHttp2Tls and EnableHttp2Cleartext, to this registry key. Set both values to 0. Reboot the server refer to https://stackoverflow.com/questions/67747270/reactjs-neterr-http2-protocol-error-200-with-netcore-in-https/67767129#67767129 2022/06/29
SharePoint Error: apps are turned off
Solved by these commands 2022/06/17
Code to set accent color of FlatLaf
2022/05/09
Convert 64 bits binary string to BigInteger and maintain the sign

The first and third method converted successfully with sign. The second one fail. The reason 3rd way working is : It convert to biginteger and convert to long (then we have sign),then convert back to biginteger (also with sign) 2022/05/08
Netbeans : communicate with other JTopComponent in the same module
2022/05/01