Skip to content
Snippets Groups Projects
Select Git revision
  • 177f5c2a6e6a7a309bd4cb47ca399fb302fa1604
  • main default protected
  • blm_dev_chan
  • release/1.4.0 protected
  • widgets_draw
  • return_of_melodic_demo
  • task_cleanup
  • mixer2
  • dx/fb-save-restore
  • dx/dldldld
  • fpletz/flake
  • dx/jacksense-headset-mic-only
  • release/1.3.0 protected
  • fil3s-limit-filesize
  • allow-reloading-sunmenu
  • wifi-json-error-handling
  • app_text_viewer
  • shoegaze-fps
  • media_has_video_has_audio
  • fil3s-media
  • more-accurate-battery
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
35 results

main.py

Blame
    • moon2's avatar
      177f5c2a
      display: bring back optional scope mode · 177f5c2a
      moon2 authored
      this is somewhat hacky and definitely a temporary solution before we have a proper compositor.
      implemented this mostly for making demos, but if people are down we wouldn't mind merging it
      into main until we have a better system to manage this.
      177f5c2a
      History
      display: bring back optional scope mode
      moon2 authored
      this is somewhat hacky and definitely a temporary solution before we have a proper compositor.
      implemented this mostly for making demos, but if people are down we wouldn't mind merging it
      into main until we have a better system to manage this.
    api.h 375 B
    #ifndef _API_H
    #define _API_H
    #include <stdint.h>
    
    #ifndef API
    #  define API(id, def) def
    #endif
    
    #define API_BUZZER 0x35c3
    API(API_BUZZER, void api_set_buzzer(uint8_t state));
    
    typedef struct {
        uint8_t red;
        uint8_t green;
        uint8_t blue;
    } led_color_t;
    
    #define API_LED 0xc0ffee
    API(API_LED, void api_set_led(uint8_t led, led_color_t color));
    
    #endif /* _API_H */