]> vault307.fbx.one Git - PicoTamachibi.git/blobdiff - main.py
fixed? probably
[PicoTamachibi.git] / main.py
diff --git a/main.py b/main.py
index 98d469b600034fe82edaa89a855541e89fdb23b4..ce5e9890cf8353111d153b788228f69296e6dece 100644 (file)
--- a/main.py
+++ b/main.py
@@ -1,4 +1,3 @@
-# from icons import food_icon
 from machine import I2C, Pin
 from ssd1306 import SSD1306_I2C
 from icon import Animate, Icon, Toolbar, Button, Event
 from machine import I2C, Pin
 from ssd1306 import SSD1306_I2C
 from icon import Animate, Icon, Toolbar, Button, Event
@@ -34,6 +33,8 @@ def clear():
     """ Clear the screen """
     oled.fill_rect(0,0,128,64,0)
 
     """ Clear the screen """
     oled.fill_rect(0,0,128,64,0)
 
+# May the Force be with you // Patrick
+
 # def animate(frames, timer):
 #     for frame in frames:
 #         oled.blit(frame.image, frame.x, frame.y)
 # def animate(frames, timer):
 #     for frame in frames:
 #         oled.blit(frame.image, frame.x, frame.y)
@@ -56,7 +57,7 @@ def build_toolbar():
 tb = build_toolbar()
 poopy = Animate(x=96,y=48, width=16, height=16, filename='poop')
 baby = Animate(x=48,y=16, width=48, height=48, filename='baby_bounce', animation_type='bounce')
 tb = build_toolbar()
 poopy = Animate(x=96,y=48, width=16, height=16, filename='poop')
 baby = Animate(x=48,y=16, width=48, height=48, filename='baby_bounce', animation_type='bounce')
-eat = Animate(x=48,y=16, width=48, height=48, filename='eab: 20t')
+eat = Animate(x=48,y=16, width=48, height=48, filename='eat')
 babyzzz = Animate(animation_type="loop", x=48,y=16, width=48, height=48, filename='baby_zzz')
 death = Animate(animation_type='bounce', x=40,y=16, width=16, height=16, filename="skull")
 go_potty = Animate(filename="potty", animation_type='bounce',x=64,y=16, width=48, height=48)
 babyzzz = Animate(animation_type="loop", x=48,y=16, width=48, height=48, filename='baby_zzz')
 death = Animate(animation_type='bounce', x=40,y=16, width=16, height=16, filename="skull")
 go_potty = Animate(filename="potty", animation_type='bounce',x=64,y=16, width=48, height=48)
@@ -74,10 +75,10 @@ call_animate.speed = 'very slow'
 class ButtonConfig:
     Configurations = {
                             "default":{
 class ButtonConfig:
     Configurations = {
                             "default":{
-                                        "left":20,
-                                        "right":19,
-                                        "action":18,
-                                        "cancel":16
+                                        "left":2,
+                                        "right":4,
+                                        "action":3,
+                                        "cancel":5
                                         },
                             "set1":{
                                         "left":20,
                                         },
                             "set1":{
                                         "left":20,
@@ -267,4 +268,4 @@ while True:
          
     oled.show()
     sleep(0.05)
          
     oled.show()
     sleep(0.05)
-    
\ No newline at end of file
+