{"action":"created","issue":{"url":"https://api.github.com/repos/GeeksSect/Astraeus/issues/1","labels_url":"https://api.github.com/repos/GeeksSect/Astraeus/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/GeeksSect/Astraeus/issues/1/comments","events_url":"https://api.github.com/repos/GeeksSect/Astraeus/issues/1/events","html_url":"https://github.com/GeeksSect/Astraeus/issues/1","id":108629670,"number":1,"title":"Описать, какие байты следует отправлять по i2c шине, для считывания данных с 10DOF модуля","user":{"login":"krucios","id":7770409,"avatar_url":"https://avatars.githubusercontent.com/u/7770409?v=3","gravatar_id":"","url":"https://api.github.com/users/krucios","html_url":"https://github.com/krucios","followers_url":"https://api.github.com/users/krucios/followers","following_url":"https://api.github.com/users/krucios/following{/other_user}","gists_url":"https://api.github.com/users/krucios/gists{/gist_id}","starred_url":"https://api.github.com/users/krucios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krucios/subscriptions","organizations_url":"https://api.github.com/users/krucios/orgs","repos_url":"https://api.github.com/users/krucios/repos","events_url":"https://api.github.com/users/krucios/events{/privacy}","received_events_url":"https://api.github.com/users/krucios/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GeeksSect/Astraeus/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"krucios","id":7770409,"avatar_url":"https://avatars.githubusercontent.com/u/7770409?v=3","gravatar_id":"","url":"https://api.github.com/users/krucios","html_url":"https://github.com/krucios","followers_url":"https://api.github.com/users/krucios/followers","following_url":"https://api.github.com/users/krucios/following{/other_user}","gists_url":"https://api.github.com/users/krucios/gists{/gist_id}","starred_url":"https://api.github.com/users/krucios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krucios/subscriptions","organizations_url":"https://api.github.com/users/krucios/orgs","repos_url":"https://api.github.com/users/krucios/repos","events_url":"https://api.github.com/users/krucios/events{/privacy}","received_events_url":"https://api.github.com/users/krucios/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-09-28T10:29:09Z","updated_at":"2015-10-12T10:49:24Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/GeeksSect/Astraeus/issues/comments/147364407","html_url":"https://github.com/GeeksSect/Astraeus/issues/1#issuecomment-147364407","issue_url":"https://api.github.com/repos/GeeksSect/Astraeus/issues/1","id":147364407,"user":{"login":"krucios","id":7770409,"avatar_url":"https://avatars.githubusercontent.com/u/7770409?v=3","gravatar_id":"","url":"https://api.github.com/users/krucios","html_url":"https://github.com/krucios","followers_url":"https://api.github.com/users/krucios/followers","following_url":"https://api.github.com/users/krucios/following{/other_user}","gists_url":"https://api.github.com/users/krucios/gists{/gist_id}","starred_url":"https://api.github.com/users/krucios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krucios/subscriptions","organizations_url":"https://api.github.com/users/krucios/orgs","repos_url":"https://api.github.com/users/krucios/repos","events_url":"https://api.github.com/users/krucios/events{/privacy}","received_events_url":"https://api.github.com/users/krucios/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T10:49:24Z","updated_at":"2015-10-12T10:49:24Z","body":"Любая транзакция по шине i2c состоит из:\r\n* start condition\r\n* slave address + R/W bit\r\n* data\r\n* stop condition\r\n\r\nStart condition, stop condition и другие управляющие сигналы реализованы в CoreI2C_Driver API.\r\nПоэтому для каждого модуля достаточно описать:\r\n* slave address (адрес модуля)\r\n* data\r\n\r\n# BMP180\r\n## Slave address\r\n0x77 - i2c адрес (7 bit) 0b1110111\r\n0xEE - 8-битный адрес для записи (i2c адрес + W бит) 0b11101110\r\n0xEF - 8-битный адрес для чтения (i2c адрес + R бит) 0b11101111\r\n## Data\r\n### Запись \r\n1) адрес регистра\r\n2) новое значение\r\n### Чтение\r\n1) адрес регистра\r\n\r\n## Примеры:\r\n### Измерение температуры\r\n1) 0xEE // адрес модуля + W бит\r\n2) 0xF4 // адрес управляющего регистра\r\n3) 0x2E // значение управляющего регистра для измерения температуры\r\n4) ждать 5 микро секунд\r\n// начинаем новую транзакцию\r\n5) 0xEF // адрес модуля + R бит \r\n6) 0xF6 // адрес регистра с требуемыми данными. Модуль выдаёт 16-юитные значения, поэтому нужно считывать 2 регистра 0xF6 и 0xF7 (в случае с измерением давления с повышенной точностью, необходимо так же считать 0xF8). Однако нет необходимости создавать отдельные транзакции для каждого регистра, так как модуль сам выдаст на шину значения всех регистров начиная с переданного Мастером (пункт 6)."}}