Skip to content

Instantly share code, notes, and snippets.

View arthurescriou's full-sized avatar

arthur escriou arthurescriou

View GitHub Profile
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)
.switch {
position: relative;
display: inline-block;
width: 58px;
height: 32px;
}
.switch input {
opacity: 0;
width: 0;
type State = {
title?: string,
prix?: number,
euh?: string,
bonjour?: string,
}
class PageArticles extends React.Component {
public state: State
constructor(props: any) {