{"action":"created","issue":{"url":"https://api.github.com/repos/wiringX/wiringX/issues/60","repository_url":"https://api.github.com/repos/wiringX/wiringX","labels_url":"https://api.github.com/repos/wiringX/wiringX/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/wiringX/wiringX/issues/60/comments","events_url":"https://api.github.com/repos/wiringX/wiringX/issues/60/events","html_url":"https://github.com/wiringX/wiringX/pull/60","id":141839952,"number":60,"title":"adding support for C.H.I.P. ","user":{"login":"Soulsurfering","id":17856881,"avatar_url":"https://avatars.githubusercontent.com/u/17856881?v=3","gravatar_id":"","url":"https://api.github.com/users/Soulsurfering","html_url":"https://github.com/Soulsurfering","followers_url":"https://api.github.com/users/Soulsurfering/followers","following_url":"https://api.github.com/users/Soulsurfering/following{/other_user}","gists_url":"https://api.github.com/users/Soulsurfering/gists{/gist_id}","starred_url":"https://api.github.com/users/Soulsurfering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soulsurfering/subscriptions","organizations_url":"https://api.github.com/users/Soulsurfering/orgs","repos_url":"https://api.github.com/users/Soulsurfering/repos","events_url":"https://api.github.com/users/Soulsurfering/events{/privacy}","received_events_url":"https://api.github.com/users/Soulsurfering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-03-18T11:21:51Z","updated_at":"2016-03-27T15:21:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wiringX/wiringX/pulls/60","html_url":"https://github.com/wiringX/wiringX/pull/60","diff_url":"https://github.com/wiringX/wiringX/pull/60.diff","patch_url":"https://github.com/wiringX/wiringX/pull/60.patch"},"body":"I have added a platform for C.H.I.P. (getchip.com).\r\n\r\nThis implementation supports:\r\n- chip->setup = &setup;\r\n- chip->pinMode = &chipPinMode;\r\n- chip->digitalWrite = &chipDigitalWrite;\r\n- chip->digitalRead = &chipDigitalRead;\r\n- chip->identify = &identify;\r\n- chip->isr = &chipISR;\r\n- chip->waitForInterrupt = &chipWaitForInterrupt;\r\n- chip->gc = &chipGC;\r\n- chip->validGPIO = &chipValidGPIO;\r\n\r\nPlease check the platform identification of \"bananapi.c\" and \"chip.c\" \r\n- [ ] bananapi.c  detects the CHIP hardware\r\n- [ ] chip.c  is not validated against Banana Pi hardware\r\n\r\nThis is the /proc/cpuinfo from my CHIP:\r\n```\r\nprocessor       : 0\r\nmodel name   : ARMv7 Processor rev 2 (v7l)\r\nBogoMIPS      : 1001.88\r\nFeatures         : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32\r\nCPU implementer : 0x41\r\nCPU architecture: 7\r\nCPU variant    : 0x3\r\nCPU part             : 0xc08\r\nCPU revision  : 2\r\n\r\nHardware      : Allwinner sun4i/sun5i Families\r\nRevision        : 0000\r\nSerial            : xxxxx\r\n```\r\n\r\nUnfortunately the pin connectors of CHIP are very different from other platforms: [Chip Connectors](http://docs.getchip.com/#pin-headers)\r\nI decided to map these pins:\r\n\r\n- Pin 0..7 -> XIO0 .. 7\r\n- Pin 8..15 -> CSID0 .. 7\r\n- Pin 16..20 -> LCDD3 .. 7\r\n- Pin 21..26 -> LCDD10 .. 15\r\n- Pin 27..32 -> LCDD18 .. 23\r\n- Pin 33 -> LCD-CLK\r\n- Pin 34 -> LCD-HSYNC\r\n- Pin 35 -> LCD-VSYNC\r\n- Pin 36 -> LCD-DE\r\n\r\nMemory mapped pin read and write works for Pin 8..36, but is not available for the Pin0..7 (XIO0..7), because these are connected via an I2C proxy.\r\n"},"comment":{"url":"https://api.github.com/repos/wiringX/wiringX/issues/comments/202084298","html_url":"https://github.com/wiringX/wiringX/pull/60#issuecomment-202084298","issue_url":"https://api.github.com/repos/wiringX/wiringX/issues/60","id":202084298,"user":{"login":"vitalogy","id":720372,"avatar_url":"https://avatars.githubusercontent.com/u/720372?v=3","gravatar_id":"","url":"https://api.github.com/users/vitalogy","html_url":"https://github.com/vitalogy","followers_url":"https://api.github.com/users/vitalogy/followers","following_url":"https://api.github.com/users/vitalogy/following{/other_user}","gists_url":"https://api.github.com/users/vitalogy/gists{/gist_id}","starred_url":"https://api.github.com/users/vitalogy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitalogy/subscriptions","organizations_url":"https://api.github.com/users/vitalogy/orgs","repos_url":"https://api.github.com/users/vitalogy/repos","events_url":"https://api.github.com/users/vitalogy/events{/privacy}","received_events_url":"https://api.github.com/users/vitalogy/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T15:21:39Z","updated_at":"2016-03-27T15:21:39Z","body":"The XIO pins are available on the GPIO-Expander through i2c.\r\nhttps://bbs.nextthing.co/t/reading-dht11-dht22-am2302-sensors/2383/5"}}