全职电灯G11

http://wiki.friendlyarm.com/wiki/index.php/WiringNP:_NanoPi_NEO/NEO2/Air_GPIO_Programming_with_C/zh
https://github.com/friendlyarm/WiringNP

https://www.cnblogs.com/ZQQH/p/8547822.html
Segmentation fault是H3和H5位数的差别?

  addr=0x01C208E8;
  mmap_base = (addr & ~MAP_MASK);
  mmap_seek = ((addr - mmap_base) >> 2);
  while(1)
  {
    val = *(gpio + mmap_seek);
    val &= ~(1<<11);
    *(gpio + mmap_seek) = val;
    delay(500);
    val |= (1<<11);
    *(gpio + mmap_seek) = val;
    delay(500);
  }

标签: none

添加新评论