File tree Expand file tree Collapse file tree 3 files changed +8
-105
lines changed
Expand file tree Collapse file tree 3 files changed +8
-105
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111import time
1212import board
1313import displayio
14+ import adafruit_touchscreen
15+ from adafruit_bitmap_font import bitmap_font
1416from adafruit_displayio_layout .widgets .flip_input import FlipInput
1517
16- from adafruit_bitmap_font import bitmap_font
17- import adafruit_touchscreen
1818
1919display = board .DISPLAY # create the display on the PyPortal,
2020# otherwise change this to setup the display
9292 arrow_height = 30 ,
9393 arrow_width = 20 ,
9494 horizontal = True ,
95- animation_time = 0.6 , # add more time since the animation covers a longer distance
95+ animation_time = 0.6 , # add more time since the animation covers a longer distance
9696)
9797
9898# Pick an interesting date to start
9999# You can set the value by direct integer indexes of the list or by one of the strings
100100# Here are three ways to set the values
101- my_flip1 .value = 9 # use direct integer indexing to set the value to the 10th month
102- my_flip2 .value = my_flip2 .value_list .index ("21" ) # find the index yourself by
103- # searching the value_list
104- my_flip3 .value = "2015" # or set the value based on a string that is in the value_list
101+ my_flip1 .value = 9 # use direct integer indexing to set the value to the 10th month
102+ my_flip2 .value = my_flip2 .value_list .index ("21" ) # find the index yourself by
103+ # searching the value_list
104+ my_flip3 .value = "2015" # or set the value based on a string that is in the value_list
105105
106106# Create the group to display and append the FlipInput widgets
107107my_group = displayio .Group (max_size = 3 )
Original file line number Diff line number Diff line change 11SPDX-FileCopyrightText: 2020 keshikan (https://www.keshikan.net)
22
3- SPDX-License-Identifier: OFL
3+ SPDX-License-Identifier: OFL-1.1
You can’t perform that action at this time.
0 commit comments