File tree Expand file tree Collapse file tree 4 files changed +9
-16
lines changed
Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -303,8 +303,8 @@ def cmd_run(self, args):
303303 self .running = True
304304 self .stop_flag = False
305305 while self .running and not self .stop_flag and self .pc <= self .pc_limit :
306- if "GO " in kb .get_new_keys ():
307- print ("[BREAK] GO PRESSED." )
306+ if "G0 " in kb .get_new_keys ():
307+ print ("[BREAK] G0 PRESSED." )
308308 break
309309
310310 if self .pc in self .lines :
@@ -348,7 +348,7 @@ def cmd_input(self, args):
348348 scr_buf [11 ] = f"{ var_name } ? " + '' .join (current_text ) + "_"
349349 scr_show ()
350350
351- if 'ENT' in keys or 'GO ' in keys :
351+ if 'ENT' in keys or 'G0 ' in keys :
352352 scr_buf [11 ] = scr_buf [11 ][:- 1 ]
353353 try :
354354 line = '' .join (current_text )
@@ -464,7 +464,7 @@ def main_loop():
464464 # create variable to remember text between loops
465465 current_text = []
466466 scr_feed ("MicroHydra BASIC 1.0." )
467- scr_feed ("Press GO Button to Break." )
467+ scr_feed ("Press G0 Button to Break." )
468468 scr_feed ("] _" )
469469 scr_show ()
470470
@@ -481,7 +481,7 @@ def main_loop():
481481
482482 # if there are keys, convert them to a string, and store for display
483483 if keys :
484- if 'GO ' in keys :
484+ if 'G0 ' in keys :
485485 machine .reset ()
486486 if 'SPC' in keys :
487487 current_text .append (' ' )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ author: RealClearwave
22author_link : https://github.com/RealClearwave
33license : MIT
44license_link : https://github.com/echo-lalia/MicroHydra-Apps/blob/main/LICENSE
5- app_version : 1.1
5+ app_version : 1.2
66
77short_description : A BASIC interpreter and REPL
88
Original file line number Diff line number Diff line change 1- """A simple app to query Wikipedia for page summaries.
2-
3- v1.3
4-
5- Changes:
6- Fixed brightness, modified to use mhconfig
7-
8- """
1+ """A simple app to query Wikipedia for page summaries."""
92import requests , network , time , json
103from machine import Pin , freq
114from lib .display import Display
@@ -96,7 +89,7 @@ def fetch_article():
9689 # wait until connected
9790 gprint (f"Waiting for connection..." )
9891 while not nic .isconnected ():
99- time .sleep (100 )
92+ time .sleep_ms (100 )
10093
10194 if "CARDPUTER" in Device :
10295 led .fill ((0 ,10 ,10 )); led .write () # set led
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ author: echo-lalia
22author_link : " https://github.com/echo-lalia"
33license : MIT
44license_link : https://github.com/echo-lalia/MicroHydra-Apps/blob/main/LICENSE
5- app_version : 2.0
5+ app_version : 2.1
66
77short_description : Fetch Wikipedia article summaries
88
You can’t perform that action at this time.
0 commit comments