{"id":19035908,"url":"https://github.com/adinack/ads1248-circuitpython","last_synced_at":"2025-10-23T14:29:49.022Z","repository":{"id":112708857,"uuid":"252573040","full_name":"AdinAck/ADS1248-CircuitPython","owner":"AdinAck","description":"A CircuitPython library for usage of the ADS1248","archived":false,"fork":false,"pushed_at":"2020-07-20T21:08:05.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-02T05:28:41.041Z","etag":null,"topics":["adc","circuitpython-library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdinAck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-02T21:55:07.000Z","updated_at":"2020-12-07T19:29:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"78d21a1e-1f72-4424-9eed-592772893bae","html_url":"https://github.com/AdinAck/ADS1248-CircuitPython","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdinAck%2FADS1248-CircuitPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdinAck%2FADS1248-CircuitPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdinAck%2FADS1248-CircuitPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdinAck%2FADS1248-CircuitPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdinAck","download_url":"https://codeload.github.com/AdinAck/ADS1248-CircuitPython/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093135,"owners_count":19746774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adc","circuitpython-library"],"created_at":"2024-11-08T21:52:29.606Z","updated_at":"2025-10-23T14:29:48.917Z","avatar_url":"https://github.com/AdinAck.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADS1248-CircuitPython\n A CircuitPython library for usage of the ADS1248.\n \n## Dependencies\n- Core CircuitPython modules.\n\n## Usage\nExample code can be found [here](https://github.com/AdinAck/ADS1248-CircuitPython/tree/master/examples).\n\nPlace [ADS1248.py](https://github.com/AdinAck/ADS1248-CircuitPython/blob/master/ADS1248.py) on your CircuitPython board next to your main script.\n\nImport the ADS1248 library like so:\n```\nfrom ADS1248 import ADS1248\n```\n\nCreate a four wire spi bus for the ADS1248(s) to use (hardware SPI pins are not required):\n```\nspi = busio.SPI(board.SCK, board.MOSI, board.MISO)\n```\n\nConfigure the ADS1248 spi bus with ADS1248.setup():\n```\nADS1248.setup(spi, board.D33, board.D35, freq=2000000)\n```\n\nNow you will create your individual ADC objects, each object will represent a seperate ADC. If you only have 1 ADC you still must create an ADC object:\n```\nadc = ADS1248(board.D31, board.D37, vref=2.048)\n```\n\nTo communicate with a single ADC object, simply apply methods to the object:\n```\nadc.wakeup()\nadc.wreg(2,[0x30,0x00]) # Write register 2 with 0x30 (configure vref) and register 3 with 0x00 (conversion rate)\nprint(adc.rreg(0,16)) # Read all registers\n```\n\n\nTo communicate with all ADC objects, use the \"All\" methods and apply them to the ADS1248 class:\n```\nADS1248.fetchAll(0,[0,2])\n```\nRefer to the wiki for a detailed list of all available methods.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadinack%2Fads1248-circuitpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadinack%2Fads1248-circuitpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadinack%2Fads1248-circuitpython/lists"}