HNHacker News
TopNewBestAskShowJobs

lupyuen

942 karma · joined May 24, 2018

IoT Techie and Educator / Apache NuttX PMC / lupyuen.org
submissionscomments
lupyuen··on Preview PineTime Watch Faces in Your Web Browser with WebAssembly
Here's how we create Watch Faces for PineTime Smart Watch and preview them... With only a web browser

https://lupyuen.github.io/pinetime-rust-mynewt/articles/simu...

lupyuen··on Build PineTime Firmware in the Cloud with GitHub Actions
Learn to build PineTime Smart Watch Firmware in the Cloud... No computer needed!

https://lupyuen.github.io/pinetime-rust-mynewt/articles/clou...

lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
I have just resized my images. Thanks for reading :-)
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Great points! We should document this somewhere :-)
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Thanks! Will try that out
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Lemme go resize my images. Thanks :-)
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Would you mind sharing why? We are adopting LVGL for PineTime Smart Watch, hope we won't fall into a trap. Thanks!
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Sorry about that... I'll have to resize my images
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Just a simple line :-)

sudo mount -o remount,rw /

Then we can sudo apt install anything...

sudo apt install gcc gdb git make libgles2-mesa-dev

lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Haha thanks for checking it out :-)
lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
That's what I thought too... A locked down walled garden!

But the more I probed, the more it looked like plain Ubuntu with Wayland and AppArmor, without X11 :-)

Check out what I found: https://lupyuen.github.io/pinetime-rust-mynewt/articles/wayl...

lupyuen··on Wayland and LVGL on PinePhone with Ubuntu Touch
Learn about Wayland and Ubuntu Touch on PinePhone... And how we build PinePhone Apps with LVGL
lupyuen··on First Bluetooth Low Energy App with Flutter
Creating a Bluetooth LE mobile app with Flutter is so easy! Let me show you the steps.
lupyuen··on Wireless Firmware Update in Action on PineTime Smart Watch (NRF52)
Observe step-by-step the Wireless Firmware Update running on PineTime Smart Watch (nRF52) with MCUBoot Bootloader, NimBLE Bluetooth LE Stack and Apache Mynewt...

https://lupyuen.github.io/pinetime-rust-mynewt/articles/dfut...

lupyuen··on MCUBoot Bootloader for PineTime Smart Watch (NRF52)
Doing Wireless Firmware Updates the right way on PineTime Smart Watch... With the open source MCUBoot Bootloader from Apache Mynewt and Zephyr.

https://lupyuen.github.io/pinetime-rust-mynewt/articles/mcub...

lupyuen··on Configure Mynewt for SPI Flash on PineTime Smart Watch (NRF52)
Hi All: Here's my new article that explains how we may access the SPI Flash on PineTime Smart Watch with Mynewt OS.

We'll be using SPI Flash in the MCUBoot Bootloader for storing the old firmware, so that MCUBoot can roll back to the old firmware if the new firmware doesn't start.

https://lupyuen.github.io/pinetime-rust-mynewt/articles/spif...

lupyuen··on Chip-8 Game Emulator in Rust for PineTime Smart Watch
Running Retro Games with Rust is not that hard on PineTime Smart Watch... Here's how I ported the libchip8 CHIP-8 Game Emulator to PineTime...

(Lemme know if you're keen to use Retro Games as a Watch Face!) https://lupyuen.github.io/pinetime-rust-mynewt/articles/chip...

lupyuen··on Debug Riot-OS on PineTime Smart Watch with VSCode
Tracking down a firmware bug in PineTime Smart Watch? Or trying to understand an alien chunk of firmware code?

VSCode Debugger with ST-Link can help!

Lemme show you how I used the debugger for my first contact with RIOT-OS...

lupyuen··on Debug Rust+Mynewt Firmware for PineTime on Raspberry Pi
Using only a Raspberry Pi, we may debug the firmware on PineTime Smart Watch: Step into the flashed program line by line, set a breakpoint to pause execution at a line, inspect variables at runtime, … Just like the Embedded Pros!

It’s a great way to learn how real IoT products are created… At a fraction of the cost of professional embedded tools and workstations!

Here are the steps to configure a Raspberry Pi (1, 2, 3 or 4, with 1 GB RAM or more) for debugging the Rust+Mynewt Firmware for PineTime…

lupyuen··on Building a Rust Driver for PineTime’s Touch Controller
Ever wondered how a Touch Screen works? Lemme explain with PineTime Smart Watch running on Rust, Apache Mynewt OS and Nordic nRF52
lupyuen··on Porting Apache Mynewt OS to GigaDevice GD32 VF103 on RISC-V
RISC-V will be everywhere... Starting with GigaDevice GD32 VF103! Find out why I think this brand new microcontroller is important to the IoT Ecosystem... And its strange link to STM32 Blue Pill and Mynewt OS
lupyuen··on Coding NRF52 with Rust and Apache Mynewt on Visual Studio Code
Nordic nRF52 is an awesome wireless microcontroller... Now you can program it with Rust, Visual Studio Code, Mynewt OS, Apache NimBLE and ST-Link!
lupyuen··on Build an NB-IoT GPS Tracker on STM32 L476 with Apache Mynewt and Embedded Rust
Let's build an NB-IoT GPS Tracker with STM32 L476, Quectel L70-R GPS module and Quectel BC95 NB-IoT module... And discover how Apache Mynewt OS and Embedded Rust make it so easy!
lupyuen··on Low Power NB-IoT on STM32 Blue Pill with Apache Mynewt and Embedded Rust
Creating a Low Power IoT Device needs a lot of optimisation... STM32 microcontroller, Quectel NB-IoT module, Apache_Mynewt OS, Embedded Rust application... Find out how I did it
lupyuen··on Visual Embedded Rust Programming with Visual Studio Code
Could there be an easier way to learn Rust programming... By dragging and dropping blocks in Visual Studio Code? I invite you to try it out... This could be the future for Rust Learners! Don't miss the "Advanced Topics" article!
lupyuen··on Rust Rocks NB-IoT STM32 Blue Pill with Quectel BC95-G on Apache Mynewt
Embedded Rust is perfect for creating NB-IoT devices! Works great with complex encoding formats like CoAP and CBOR... While keeping our devices safe from crashing bugs! Here's how I created my own NB-IoT sensor with Rust, STM32 Blue Pill and Apache Mynewt...
lupyuen··on Get Started with NB-IoT and Quectel Modules
Everything you need to know about sending IoT sensor data over NB-IoT and CoAP... From Quectel modules to thethings.io!
lupyuen··on Visual Programming with Embedded Rust? Yes with Apache Mynewt and Blockly
Here's my new article that explains how we can have drag-and-drop visual programming with Embedded Rust and Apache Mynewt.
lupyuen··on Safer, Simpler Embedded Rust with Apache Mynewt on STM32 Blue Pill
Here's my new article that covers Declarative and Procedural Macros in Rust, plus macro debugging tips for Visual Studio Code.

Also explains how bindgen creates Rust bindings for importing C functions.

Presented in an experimental comics style. Enjoy! :-)

lupyuen··on Hosting Embedded Rust Apps on Apache Mynewt with STM32 Blue Pill
Thanks :-) I'm not speaking on behalf of the terrific Mynewt team, but I feel that Mynewt is already a great embedded RTOS with many well-crafted low-level APIs, done in C.

Like the Mynewt Sensor Framework. It really saves you a lot of trouble when building IoT devices. Just pick a sensor driver from their library, and Mynewt handles all the sensor polling for you...

https://mynewt.apache.org/latest/os/modules/sensor_framework...

Adding Rust to the core Mynewt OS may cause "Abstraction Bloat", I think. We will start adding layers of wrappers on top of bare metal to make the OS look tidily object-oriented, to fit all past, present and future microcontrollers, peripherals, data interfaces, ... Then add another layer to make it easy for app developers to call.

No offence to the Embedded Rust community, but I fear that Mynewt with Rust will become a complicated OS with this GPIO code...

https://rust-embedded.github.io/book/static-guarantees/desig...

The best way forward I think: Get embedded app developers to move away from C and port their embedded apps to Rust. Build the apps with safe Rust wrappers on top of the OS.

Once we figure out what kind of APIs the embedded Rust apps really need (e.g. Sensor Framework), then we dig deeper and restructure the OS with Rust. This could work with any embedded OS: Mynewt, Zephyr, FreeRTOS, ...

← PreviousPage 2 of 3Next →