Tuesday, October 13, 2020

Install official Visual Studio Code (ver 1.5) and PlatformIO IDE on Raspberry Pi OS (32 bit)


With Visual Studio Code now support Raspberry Pi officially, just tried to install on Raspberry Pi 4B/4GB. As straightforward as stated in Visual Studio Code doc.

Install official Visual Studio Code (ver 1.5) and PlatformIO IDE on Raspberry Pi OS (32 bit):

Install VS Code:

Visit: https://code.visualstudio.com/
Scroll down and download ".deb" of "ARM" build for 32 bit Raspberry Pi OS.

Open Terminal, run the command:
$ sudo apt install ./<file>.deb

Where <file> is the file downloaded.

Install Extension of PlatformIO IDE to Visual Studio Code:

Click Extension tab, search and install PlatformIO IDE


Sunday, October 11, 2020

Visual Studio Code now support Raspberry Pi officially

 Visual Studio Code is a free, open source code editor from Microsoft. With its release of version 1.50 (September 2020) it support Raspberry Pi officiaally.


  • Visual Studio Code is a free, open source code editor from Microsoft.
  • It's available cross-platform on Linux and Mac, and also Chromebooks that support Linux apps.
  • Official ARM support for Linux now brings the application to ARM based Chromebooks, Linux machines like the PineBook Pro and the Raspberry Pi.

reference:
- Windows Central > Microsoft Visual Studio Code now supports Raspberry Pi and ARM Chromebooks
- Visual Studio Code > September 2020 (version 1.50)

Next:
Install official Visual Studio Code (ver 1.5) and PlatformIO IDE on Raspberry Pi OS (32 bit)


Saturday, October 10, 2020

Watch CPU frequency of Raspberry Pi: adding menu item of CPUFreq frontend and using vcgencmd.

This video show how to watch CPU frequency of Raspberry Pi running Rspberry Pi OS (tested on Raspberry Pi 4):
- adding menu item of CPUFreq frontend
- or using vcgencmd. 

vcgencmd is a command line utility that can get various pieces of information from the VideoCore GPU on the Raspberry Pi, details refer to Raspberry Pi Document of vcgencmd.

To get the actual speed of ARM cores, enter the command in Terminal:

$ vcgencmd measure_clock arm

You can also keep watching vcgencmd result in Terminal using the watch command.

$ watch -n 1 vcgencmd measure_clock arm

Alternatively, you can also check it in the file /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq, where cpu0 can be cpu0~4 for Raspberry Pi 4 with 4 core. Read HERE.