{"id":20895806,"url":"https://github.com/thrsouza/cheesecake","last_synced_at":"2025-05-13T00:31:18.879Z","repository":{"id":42754053,"uuid":"279485633","full_name":"thrsouza/cheesecake","owner":"thrsouza","description":"Cheesecake is the best option for Raspberry Pi with Nodejs!","archived":false,"fork":false,"pushed_at":"2023-01-07T20:05:15.000Z","size":661,"stargazers_count":10,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-31T19:45:16.606Z","etag":null,"topics":["cheesecake","gpio","io","iot","pi","raspberry","raspi","rpi"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cheesecakejs","language":"JavaScript","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/thrsouza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-14T04:53:24.000Z","updated_at":"2022-07-10T18:25:44.000Z","dependencies_parsed_at":"2023-02-08T00:00:41.879Z","dependency_job_id":null,"html_url":"https://github.com/thrsouza/cheesecake","commit_stats":null,"previous_names":["thiagodesouza/cheesecake"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrsouza%2Fcheesecake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrsouza%2Fcheesecake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrsouza%2Fcheesecake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thrsouza%2Fcheesecake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thrsouza","download_url":"https://codeload.github.com/thrsouza/cheesecake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225159821,"owners_count":17430186,"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":["cheesecake","gpio","io","iot","pi","raspberry","raspi","rpi"],"created_at":"2024-11-18T10:30:33.851Z","updated_at":"2024-11-18T10:31:45.707Z","avatar_url":"https://github.com/thrsouza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/logo.png\" width=\"175\" alt=\"Cheesecake\" /\u003e\n\u003c/p\u003e\n\n\u003ch4 align=\"center\"\u003e\n  Cheesecake is the best option for Raspberry Pi with Nodejs!\n\u003c/h4\u003e\n\n## 📖 Overview\n\nThis package was created to help Nodejs developers create projects to work with the Raspberry PI GPIO pins in a simple way. Why did I choose this name? Because I ❤️ cheesecake and that's enough! :D\n\n## ‍🚀 Installation\n\nJust add cheesecake to your Nodejs project for Raspberry Pi:\n\n```sh\n$ npm i cheesecakejs --save\n```\n\n## 👨🏽‍💻 Example\n\n```js\nconst { Gpio, GpioValue, GpioDirection } = require('cheesecakejs');\n\nconst gpio4 = new Gpio(4, GpioDirection.OUT);\n\ngpio4.onValueChanged((data) =\u003e {\n  const dateTime = new Date().toJSON();\n  console.log(`${dateTime} - Gpio${gpio4.gpio}: new value =\u003e ${data}`);\n});\n\nsetInterval(() =\u003e {\n  const value = gpio4.getValue();\n  gpio4.setValue(Boolean(value) ? GpioValue.LOW : GpioValue.HIGH);\n}, 1000);\n\nprocess.on('SIGINT', () =\u003e {\n  console.log('Please, await...');\n  gpio4.dispose();\n  process.exit();\n});\n```\n\n## 📕 GPIO Pins Diagram\n\nA powerful feature of the Raspberry Pi is the row of GPIO pins along the top edge of the board.\n\n\u003cimg src=\"./assets/gpio-diagram.png\" alt=\"GPIO Diagram\" /\u003e\n\n\u003csmall\u003e\nREFERENCE: \u003ca href=\"https://www.raspberrypi.org/documentation/usage/gpio/\"\u003ehttps://www.raspberrypi.org/documentation/usage/gpio/\u003c/a\u003e\n\u003c/small\u003e\n\n## 📃 Contributing\n\nThanks for your interest on our project. Take a moment to read our guidelines:\n\n- [Contributing](./.github/CONTRIBUTING.md)\n- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)\n\n## 📮 Contact\n\nWe have a few channels for contact:\n\n- Email: [dev@thiagosouza.com](mailto:dev@thiagosouza.com)\n- [GitHub Issues](https://github.com/thiagodesouza/cheesecake/issues)\n\n## 📃 License\n\nMIT © [Cheesecake](https://github.com/thiagodesouza/cheesecake/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrsouza%2Fcheesecake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthrsouza%2Fcheesecake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrsouza%2Fcheesecake/lists"}