Skip to content

Commit

Permalink
Update to PiCode library v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
latchdevel committed Oct 3, 2024
1 parent f3bc453 commit 20c1b56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ picoder <command> [options]
```
$ picoder decode -s "c:011010100101011010100110101001100110010101100110101010101010101012;p:1400,600,6800@"
[{
"conrad_rsl_switch": {
"id": 1,
"unit": 2,
"state": "on"
}
}]
{
"protocols": [{
"conrad_rsl_switch": {
"id": 1,
"unit": 2,
"state": "on"
}
}]
}
```

### Convert from pilight string to pulse train:
Expand Down Expand Up @@ -219,7 +221,7 @@ pilight-send:
- [ ] Support for [pilight-send](https://manual.pilight.org/programs/send.html) input format (pilight-send -p quigg_gt7000 -i 2816 -u 1 -f)

# License
Copyright (c) 2021-2022 Jorge Rivera. All right reserved.
Copyright (c) 2021-2024 Jorge Rivera. All right reserved.

License GNU Lesser General Public License v3.0.

Expand Down
2 changes: 1 addition & 1 deletion libs/PiCode
Submodule PiCode updated 71 files
+2 −2 .github/workflows/BuildTest.yml
+3 −1 .gitignore
+8 −7 CMakeLists.txt
+96 −128 README.md
+40 −0 cpicode_example.c
+4 −0 libs/pilight/libs/pilight/core/log.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/alecto_ws1700.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/alecto_wsd17.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/alecto_wx500.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_contact.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_dimmer.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_dusk.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_motion.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_screen.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_screen_old.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/arctech_switch_old.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/auriol.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/beamish_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/clarus.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/cleverwatts.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/conrad_rsl_contact.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/conrad_rsl_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/daycom.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/ehome.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/elro_300_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/elro_400_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/elro_800_contact.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/elro_800_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/eurodomest_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/ev1527.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/fanju.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/heitech.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/impuls.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/iwds07.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/kerui_d026.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/livolo_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/logilink_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/mumbi.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/nexus.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/ninjablocks_weather.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/pollin.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/quigg_gt1000.c
+1 −1 libs/pilight/libs/pilight/protocols/433.92/quigg_gt1000.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/quigg_gt7000.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/quigg_gt9000.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/quigg_screen.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/rc101.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/rev_v1.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/rev_v2.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/rev_v3.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/rsl366.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/sc2262.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/secudo_smoke.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/selectremote.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/silvercrest.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/smartwares_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/tcm.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/techlico_switch.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/teknihall.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/tfa.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/tfa2017.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/tfa30.h
+1 −1 libs/pilight/libs/pilight/protocols/433.92/x10.h
+20 −0 libs/pilight/libs/pilight/protocols/protocol.c
+3 −0 libs/pilight/libs/pilight/protocols/protocol.h
+40 −0 picode_example.cpp
+11 −6 src/PiCode.cpp
+10 −5 src/PiCode.h
+113 −56 src/cPiCode.c
+14 −5 src/cPiCode.h
6 changes: 3 additions & 3 deletions src/picoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
https://github.com/latchdevel/picoder
Copyright (c) 2021 Jorge Rivera. All right reserved.
Copyright (c) 2021-2024 Jorge Rivera. All right reserved.
License GNU Lesser General Public License v3.0.
*/

#ifndef PICODER_H
#define PICODER_H

#define MAYOR_VERSION 1
#define MINOR_VERSION 3
#define MINOR_VERSION 4

#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -65,7 +65,7 @@ void show_version(){
printf("picoder v%d.%d (%s)\n",MAYOR_VERSION, MINOR_VERSION, STRINGIFY(BUILD_VERSION));
printf("Compiled at " __DATE__ " " __TIME__ " %s (%s)\n",STRINGIFY(BUILD_COMPILER), BUILD_TYPE );
printf("PiCode library version: %s\n", picode_version ? picode_version : "unknow");
printf("Copyright (c) 2021-2022 Jorge Rivera. All right reserved.\n");
printf("Copyright (c) 2021-2024 Jorge Rivera. All right reserved.\n");
printf("See https://github.com/latchdevel/picoder\n\n");

printf("License GNU Lesser General Public License v3.0.\n");
Expand Down

0 comments on commit 20c1b56

Please sign in to comment.