课程: Raspberry Pi Weekly

免费学习该课程!

今天就开通帐号,24,600 门业界名师课程任您挑!

Explore the Sense HAT emulator

Explore the Sense HAT emulator

- The Sense HAT is an inexpensive collection of sensors and controls for data gathering and experimentation. We've already used it in previous Raspberry Pi weekly sessions, but did you know there is a software emulator for the Sense HAT? Let's spend some time looking at the uses of this emulator and how you can use it in your research. Hi, I'm Mark Niemann-Ross, and welcome to this week's edition of Raspberry Pi Weekly. Every week we explore the Raspberry Pi and share useful tips. If you've written a program in Python that uses a Sense HAT, you've included the Sense HAT library and you can see that in line five of this code from sense_hat import sense_hat. This links to a library with functions to access the Sense HAT. But let's say you're in a situation where you don't have access to a Sense HAT but you're trying to test that code. This is where you can use the emulator. And to use the emulator, you simply change…

内容