Title: Figure out if CircuitPython on RP2040 can set pullup on ADC · Issue #1 · FrameworkComputer/Framework_Inputmodule_CircuitPython · GitHub
Open Graph Title: Figure out if CircuitPython on RP2040 can set pullup on ADC · Issue #1 · FrameworkComputer/Framework_Inputmodule_CircuitPython
X Title: Figure out if CircuitPython on RP2040 can set pullup on ADC · Issue #1 · FrameworkComputer/Framework_Inputmodule_CircuitPython
Description: Currently I'm hardcoding it in the firmware. In the submodule ports/raspberrypi/sdk: --- a/src/rp2_common/hardware_adc/include/hardware/adc.h +++ b/src/rp2_common/hardware_adc/include/hardware/adc.h @@ -71,7 +71,8 @@ static inline void a...
Open Graph Description: Currently I'm hardcoding it in the firmware. In the submodule ports/raspberrypi/sdk: --- a/src/rp2_common/hardware_adc/include/hardware/adc.h +++ b/src/rp2_common/hardware_adc/include/hardware/adc....
X Description: Currently I'm hardcoding it in the firmware. In the submodule ports/raspberrypi/sdk: --- a/src/rp2_common/hardware_adc/include/hardware/adc.h +++ b/src/rp2_common/hardware_adc/include/hardware/...
Opengraph URL: https://github.com/FrameworkComputer/Framework_Inputmodule_CircuitPython/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Figure out if CircuitPython on RP2040 can set pullup on ADC","articleBody":"Currently I'm hardcoding it in the firmware.\r\n\r\nIn the submodule `ports/raspberrypi/sdk`:\r\n```diff\r\n--- a/src/rp2_common/hardware_adc/include/hardware/adc.h\r\n+++ b/src/rp2_common/hardware_adc/include/hardware/adc.h\r\n@@ -71,7 +71,8 @@ static inline void adc_gpio_init(uint gpio) {\r\n // Select NULL function to make output driver hi-Z\r\n gpio_set_function(gpio, GPIO_FUNC_NULL);\r\n // Also disable digital pulls and digital receiver\r\n- gpio_disable_pulls(gpio);\r\n+ // gpio_disable_pulls(gpio);\r\n+ gpio_pull_up(gpio);\r\n gpio_set_input_enabled(gpio, false);\r\n }\r\n```","author":{"url":"https://github.com/JohnAZoidberg","@type":"Person","name":"JohnAZoidberg"},"datePublished":"2023-08-14T09:53:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1/Framework_Inputmodule_CircuitPython/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:894a59b0-dccc-cd29-4f7d-81b5c7a39a45 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8692:1ED5CB:A24DF7:DFA728:69775A87 |
| html-safe-nonce | b9b2b5b5e8dbae76c653f63201fb1954b5c5ce891fd72f36ef06d0a48629f169 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjkyOjFFRDVDQjpBMjRERjc6REZBNzI4OjY5Nzc1QTg3IiwidmlzaXRvcl9pZCI6IjI0MDMwNzU1OTg3NzYyMjg0ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fd08a4e2a607aa5c2ce9c42967f3264d7d5cc18eca6a9785b99b10655ec5e840 |
| hovercard-subject-tag | issue:1849430973 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/FrameworkComputer/Framework_Inputmodule_CircuitPython/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/116fc61b20307ec88904ec0605d0d222cb923d23a7e5692f4207d3512b0e892b/FrameworkComputer/Framework_Inputmodule_CircuitPython/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/116fc61b20307ec88904ec0605d0d222cb923d23a7e5692f4207d3512b0e892b/FrameworkComputer/Framework_Inputmodule_CircuitPython/issues/1 |
| og:image:alt | Currently I'm hardcoding it in the firmware. In the submodule ports/raspberrypi/sdk: --- a/src/rp2_common/hardware_adc/include/hardware/adc.h +++ b/src/rp2_common/hardware_adc/include/hardware/adc.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JohnAZoidberg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/FrameworkComputer/Framework_Inputmodule_CircuitPython git https://github.com/FrameworkComputer/Framework_Inputmodule_CircuitPython.git |
| octolytics-dimension-user_id | 58124942 |
| octolytics-dimension-user_login | FrameworkComputer |
| octolytics-dimension-repository_id | 673637248 |
| octolytics-dimension-repository_nwo | FrameworkComputer/Framework_Inputmodule_CircuitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 673637248 |
| octolytics-dimension-repository_network_root_nwo | FrameworkComputer/Framework_Inputmodule_CircuitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width