Skip to content
Snippets Groups Projects
Select Git revision
  • 6930dfbbce931345ae6d7a82dfd450a3478ccd25
  • main default protected
  • tuxcoder_dome
  • tuxcoder_fix_captouch
  • crates-reorga
  • wifi
  • test-badgenet
7 results

Cargo.lock

Blame
  • Forked from flow3r / flow3-rs
    Source project has a limited visibility.
    modpyb.h 554 B
    extern const mp_obj_type_t pyb_pin_type;
    extern const mp_obj_type_t pyb_pwm_type;
    extern const mp_obj_type_t pyb_adc_type;
    extern const mp_obj_type_t pyb_rtc_type;
    extern const mp_obj_type_t pyb_i2c_type;
    extern const mp_obj_type_t pyb_spi_type;
    
    typedef struct _pyb_pin_obj_t {
        mp_obj_base_t base;
        uint16_t pin_id;
        uint16_t phys_port;
        uint32_t periph;
        uint16_t func;
    } pyb_pin_obj_t;
    
    uint mp_obj_get_pin(mp_obj_t pin_in);
    pyb_pin_obj_t *mp_obj_get_pin_obj(mp_obj_t pin_in);
    int pin_get(uint pin);
    void pin_set(uint pin, int value);