{"id":13338126,"url":"https://github.com/krzychb/toit-max6675","last_synced_at":"2025-03-11T08:32:26.191Z","repository":{"id":177966292,"uuid":"661144685","full_name":"krzychb/toit-max6675","owner":"krzychb","description":"Driver for MAX6675 cold junction compensated K-thermocouple to digital converter","archived":false,"fork":false,"pushed_at":"2023-07-02T04:17:33.000Z","size":305,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-23T20:12:23.873Z","etag":null,"topics":["esp32","jaguar","max6675","toit"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krzychb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-01T23:40:32.000Z","updated_at":"2023-07-05T07:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"39efb13f-536c-47c7-acc2-774a1db0ff04","html_url":"https://github.com/krzychb/toit-max6675","commit_stats":null,"previous_names":["krzychb/toit-max6675"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzychb%2Ftoit-max6675","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzychb%2Ftoit-max6675/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzychb%2Ftoit-max6675/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzychb%2Ftoit-max6675/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krzychb","download_url":"https://codeload.github.com/krzychb/toit-max6675/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243000933,"owners_count":20219773,"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":["esp32","jaguar","max6675","toit"],"created_at":"2024-07-29T19:15:31.639Z","updated_at":"2025-03-11T08:32:26.183Z","avatar_url":"https://github.com/krzychb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MAX6675\n\nToit driver for the MAX6675, a cold junction compensated K-thermocouple to digital converter. The driver implements the reading of data from MAX6675 over ESP32's native SPI interface or using GPIO pin bit banging.\n\n\n# Installation\n\n```bash\njag pkg install github.com/krzychb/toit-max6675\n```\n\n# Usage\n\nThe following example is using bit banging of GPIO pins.\n\n```toit\nimport gpio\nimport max6675\n\n//          ESP32 GPIO #  // MAX6675 Function (Pin)\ncs_gpio ::=  gpio.Pin 12  // Chip select      (CS)\nso_gpio ::=  gpio.Pin 13  // Serial output    (SO)\nsck_gpio ::= gpio.Pin 14  // Serial clock     (SCK)\n\n\nmain:\n  device := max6675.DriverBitBang\n    --cs=cs_gpio\n    --so=so_gpio\n    --sck=sck_gpio\n\n  max6675 := max6675.Driver device\n\n  while true:\n    print \"Temperature: $(%0.1f max6675.read.temperature)°C\"\n    sleep --ms=500\n```\n\nSee [max6675.toit](examples/max6675.toit) for an example of reading the temperature from MX6675 using SPI interface of ESP32.\n\n\n# About\n\n- [Toit](https://toitlang.org/) is a modern high-level language designed specifically for microcontrollers.\n- [MAX6675](https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf) is a cold junction compensated K-thermocouple to-digital converter able to read temperatures in the range from 0°C to +1024°C.\n- [ESP32](https://www.espressif.com.cn/) is a feature-rich MCU with integrated Wi-Fi and Bluetooth connectivity for a wide range of applications.\n\n\n# Resources\n\n- [MAX6675 Cold-Junction-Compensated K-Thermocouple-to-Digital Converter (datasheet)](https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf)\n\n\n# Acknowledgments\n\n- [Florian Loitsch](https://github.com/floitsch) was extremely helpful providing me with several tips on how to implement the driver.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzychb%2Ftoit-max6675","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrzychb%2Ftoit-max6675","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzychb%2Ftoit-max6675/lists"}