Help for this page

Select Code to Download


  1. or download this
      # Low level register access
      Device::BCM2835::peri_read(&Device::BCM2835::BCM2835_GPIO_BASE + &De
    +vice::BCM2835::BCM2835_GPFSEL1);
      Device::BCM2835::peri_write(&Device::BCM2835::BCM2835_GPIO_BASE + &D
    +evice::BCM2835::BCM2835_GPFSEL2, 0xdeadbeef)
      Device::BCM2835::peri_set_bits(&Device::BCM2835::BCM2835_GPIO_BASE +
    + &Device::BCM2835::BCM2835_GPFSEL3, 0xdeadbeef, 0x1f);
    
  2. or download this
    Device::BCM2835::gpio_fsel($_, &Device::BCM2835::BCM2835_GPIO_FSEL_OUT
    +P) for @pins;