![]() ![]() draw_text ( f " /dri:/usr/lib/dri, suffix _dri) draw_line ( 0, y_scaled, SCREEN_WIDTH, y_scaled, color = arcade. clear () # add the grid for mV for y in range ( self. Call this function to restart the game.""" pass def nearest_multiple ( self, n, base ): return base * round ( n / base ) def on_draw ( self ): """Render the screen.""" self. ![]() ecg_data_mV )) def setup ( self ): """Set up the game here. LICORICE ) with open ( ECG_FILE ) as f : _ = next ( f ) # skip the header for line in f : ts, ts_ns, ts_ms, uV = line. _init_ ( SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE ) arcade. """ ecg_pos = 0 y_scale = 300 BTN_LEFT = ':resources:onscreen_controls/flat_light/left.png' BTN_RIGHT = ':resources:onscreen_controls/flat_light/right.png' BTN_SCALE = 1 max_mV = 10 min_mV = - 10 sample_invervalls_ms = ecg_data_mV = def _init_ ( self ): # Call the parent class and set up the window super (). #!/usr/bin/env python3 # ECG Viewer import arcade # Constants SCREEN_WIDTH = 1920 SCREEN_HEIGHT = 720 SCREEN_TITLE = "ECG Viewer" ECG_FILE = 'polar_sensor_logger_files\Polar_H10_AF7xxxxB_20220521_000903_ECG.txt' class ECGViewer ( arcade. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |