Categorie

Visual Studio Code Tricks

Different Zoom for every instance

Go to File -> Preferences -> Settings -> Workspace and check the entry Editor: Mouse Wheel Zoom or set "editor.mouseWheelZoom": true

Format code on saving

Go to File -> Preferences -> Settings -> Workspace and check the entry Editor: Format on Save

Undescore not visible on integrated terminal

Change the terminal font size: "terminal.integrated.fontSize": 13

Use a specific version of an extension

In my case for a bug I want to use rust-analyzer 0.2.694 (the current is 0.2.702 but it gives me some trouble) by matkland

Sources:

Or simply:

  • Click on the settings of the installed extension (gear icon)
  • Click on Install another version
  • Choose the version that you need

Profiles

// TODO
Profiles: https://dev.to/jsjoeio/how-to-create-code-profiles-in-vscode-3ofo

RPi – Raspberry Pi – Kernel RT – XCompiling – HowTo

 

 

 

 

 

 

 

This guide is valid for the RaspberryPi 1.

  • In your linux PC home directory create a rpi_kernel directory:
$ mkdir ~/rpi_kernel
cd ~/rpi_kernel
  • Download the raspberry tools:
$ git clone git://github.com/raspberrypi/tools.git
  • Add the bin folder to PATH:
$ PATH=rpi_kernel/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin:$PATH
  • Download kernel sources:
$ git clone --depth=1 https://github.com/raspberrypi/linux
  • Download the RT patch:
$ wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4.38-rt49.patch.gz
  • Apply the patch:
$ cd linux
KERNEL=kernel
cat ../patch-4.4.XX-rtYY.patch | patch -p1
  • Make an RPi default configuration:
$ make ARCH=arm CROSS_COMPILE=/arm-linux-gnueabihf- bcmrpi_defconfig menuconfig
  • Enabling the FULL PREEMPTIBLE KERNEL:

  • Compiling the kernel:
$ make -j 8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
  • To install kernel and modules on your Raspberry follow the official guide from: Install directly onto the SD card

 

 

Source: https://www.raspberrypi.org/documentation/linux/kernel/building.md

Sostituire l’ATMEGA328P-PU su Arduino: Come programmarlo – heron’s blog

Un'utile guida per chi deve sostituire l'atmega 328 del proprio Arduino:

Sorgente: Sostituire Arduino con un ATMEGA328P-PU: Come programmarlo - heron's blog