[docs] Add migration page

This commit is contained in:
Kuba Szczodrzyński
2023-04-24 10:47:06 +02:00
parent c5361a4738
commit 85a687fc56
4 changed files with 81 additions and 6 deletions

View File

@@ -30,14 +30,12 @@ Next, read one of the [flashing guides](../flashing/SUMMARY.md) to run your proj
LibreTuya has a few configuration options that change its behavior or features. Refer to [LT configuration](../dev/config.md) for details.
### GPIO usage
### GPIO usage - important change
!!! important
This can be confusing at first, so make sure to read this part carefully to understand it.
Since v1.0.0, GPIOs are no longer meant to be referenced by `D#` numbers.
Input/output pin numbers in Arduino code (i.e. `digitalWrite()`) use Arduino pin numbers - for example `D1`, `D3`. This is the same as simply `1` or `3`, but it cannot be confused with CPU GPIO numbers.
On the board pinout page, the purple blocks represent Arduino pins, while the dark red blocks refer to GPIO numbers.
If your program is using Arduino I/O functions, refer to the [Migration guide](../dev/migration_v1.0.0.md) to modify your program accordingly.
### Examples