Difference between revisions of "Component: Sense Hat (Raspberry Pi Hat)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray...") |
|||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 133: | Line 137: | ||
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] | ||
+ | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | I2C | ||
|- | |- | ||
|- | |- | ||
Line 165: | Line 173: | ||
| colspan="2" | Baud rate to be used | | colspan="2" | Baud rate to be used | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|- | |- |
Latest revision as of 17:23, 9 November 2022
Author | Matrix TSL |
Version | 1.0 |
Category | Raspberry Pi Hat |
Contents
Sense Hat component
A component to drive various features on the Raspberry Pi Sense Hat. Supported Features: 8x8 RGB LED / 5-Way Joystick
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
A simple example to sample the joystick and output a fixed colour to all 8 x 8 RGB LEDs. Pressing up on the joystick outputs blue to the LEDs and pressing down outputs red.
Downloadable macro reference
![]() |
ReadJoystick |
Reads the joystick Returns the direction as a bit field. 1 = Down / 2 = Right / 4 = Up / 8 = Click / 16 = Left | |
![]() |
Return |
![]() |
SetPixel |
Seta the colour of a single pixel | |
![]() |
X |
![]() |
Y |
![]() |
R |
![]() |
G |
![]() |
B |
![]() |
Return |
![]() |
SetAll |
Sets all pixels to a specific colour | |
![]() |
R |
![]() |
G |
![]() |
B |
![]() |
Return |
![]() |
Initialise |
Initialises the I2C peripheral ready for communications. | |
![]() |
Return |