You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What format of the book has this error? You may select more than one option.
Print, PDF, ePub
What language of the book has this error?
English (EN)
Page Number or Section
Chapter 7
Detailed description
At the time of publication, the Sense Hat Emulator did not work under the newest, Debian Bookworm-based version of Raspberry Pi OS. Scratch 3 did not support Raspberry Pi 5 at the time of publication, either.
However, you can install a version of the Sense Hat Emulator, along with a version of Thonny that can talk to the emulator, with these commands:
Whenever you want to run the Sense Hat Emulator, you'll need to open a Terminal, run . ~/sense-emu-env/bin/activate, then run the Sense Hat Emulator with sense_emu_gui. If you want to use Thonny with the Sense Hat Emulator, you need to run thonny from the terminal after you run the activate command.
You may also find that some Sense Hat Emulator sensors, such as humidity, do not work under 64-bit Bookworm-based Raspberry Pi OS, but will work under the 32-bit version.
A future update to Raspberry Pi OS will eliminate the need for this workaround.
You can more information on virtual environments and why they are required at https://rptl.io/venv
The text was updated successfully, but these errors were encountered:
Contact Details
[email protected]
What format of the book has this error? You may select more than one option.
Print, PDF, ePub
What language of the book has this error?
English (EN)
Page Number or Section
Chapter 7
Detailed description
At the time of publication, the Sense Hat Emulator did not work under the newest, Debian Bookworm-based version of Raspberry Pi OS. Scratch 3 did not support Raspberry Pi 5 at the time of publication, either.
However, you can install a version of the Sense Hat Emulator, along with a version of Thonny that can talk to the emulator, with these commands:
Whenever you want to run the Sense Hat Emulator, you'll need to open a Terminal, run
. ~/sense-emu-env/bin/activate
, then run the Sense Hat Emulator withsense_emu_gui
. If you want to use Thonny with the Sense Hat Emulator, you need to runthonny
from the terminal after you run theactivate
command.You may also find that some Sense Hat Emulator sensors, such as humidity, do not work under 64-bit Bookworm-based Raspberry Pi OS, but will work under the 32-bit version.
A future update to Raspberry Pi OS will eliminate the need for this workaround.
You can more information on virtual environments and why they are required at https://rptl.io/venv
The text was updated successfully, but these errors were encountered: