{"id":23744888,"url":"https://github.com/stm32duino/s2-lp","last_synced_at":"2025-09-04T19:32:06.409Z","repository":{"id":47052617,"uuid":"249938701","full_name":"stm32duino/S2-LP","owner":"stm32duino","description":"Arduino library to support S2-LP sub-1GHz transceiver","archived":false,"fork":false,"pushed_at":"2023-05-09T13:22:54.000Z","size":90,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-05-09T14:40:29.118Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stm32duino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-25T09:38:41.000Z","updated_at":"2023-03-31T03:54:26.000Z","dependencies_parsed_at":"2022-08-23T18:11:09.310Z","dependency_job_id":null,"html_url":"https://github.com/stm32duino/S2-LP","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FS2-LP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FS2-LP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FS2-LP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FS2-LP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/S2-LP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231987772,"owners_count":18456475,"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":[],"created_at":"2024-12-31T12:50:36.241Z","updated_at":"2024-12-31T12:50:37.107Z","avatar_url":"https://github.com/stm32duino.png","language":"C++","readme":"# S2-LP\nArduino library to support the S2-LP sub-1GHz transceiver\n\n## API\n\nThis sensor uses SPI to communicate.\n\nFor SPI it is then required to create a SPI interface before accessing to the sensors:  \n\n    dev_spi = new SPIClass(SPI_MOSI, SPI_MISO, SPI_SCK);  \n    dev_spi-\u003ebegin();\n\nAn instance can be created and enabled with SPI bus following the procedure below:  \n\n    myS2LP = new S2LP(devSPI, A1, D7, A5, 868000000, 50000000, paInfo, S2LP_GPIO_3, 0x44, 0xEE, 0xFF);\n    myS2LP-\u003ebegin();\n\nIn order to be notified when a new packet is received we must register a callback function\n\n    myS2LP-\u003eattachS2LPReceive(callback_func);\n\nIn order to send a packet to another node with address 0x44 you can use the folowing API:\n\n    myS2LP-\u003esend(send_buf, (strlen((char *)send_buf) + 1), 0x44, true);\n\nIn order to read a packet after having received a notification you can use the procedure below:\n\n    uint8_t data_size = myS2LP-\u003egetRecvPayloadLen();\n    myS2LP-\u003eread(read_buf, data_size);\n\n## Documentation\n\nYou can find the source files at  \nhttps://github.com/stm32duino/S2-LP\n\nThe S2-LP sub-1GHz transceiver datasheet is available at  \nhttps://www.st.com/content/st_com/en/products/wireless-transceivers-mcus-and-modules/sub-1ghz-rf/s2-lp.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Fs2-lp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Fs2-lp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Fs2-lp/lists"}