This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import board | |
| import digitalio | |
| import adafruit_rgb_display.ili9341 as ili9341 | |
| from PIL import Image, ImageDraw, ImageFont | |
| # Initialize the display | |
| spi = board.SPI() | |
| tft_cs = digitalio.DigitalInOut(board.CE0) | |
| tft_dc = digitalio.DigitalInOut(board.D24) | |
| display = ili9341.ILI9341(spi, cs=tft_cs, dc=tft_dc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .switch { | |
| position: relative; | |
| display: inline-block; | |
| width: 58px; | |
| height: 32px; | |
| } | |
| .switch input { | |
| opacity: 0; | |
| width: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type State = { | |
| title?: string, | |
| prix?: number, | |
| euh?: string, | |
| bonjour?: string, | |
| } | |
| class PageArticles extends React.Component { | |
| public state: State | |
| constructor(props: any) { |