Hot answers tagged


There are some issues with your code. As mentioned in my comment, Decrypt () expects the Cipher Text as input and generates the Decrypted text as an output. However, in your code you're using the Plain text (which you confusingly named "input") as an input. The correct input should be your Cipher Text (which is the output from the Encrypt () ...


You don't. The PCF8574 is an IO expander. It doesn't have any provision for PWM. It's either on, or off.


I have solved this later I post the question.😂 The solution is using the fact which SPI on the SAMD21 will hang while W102 restarts, so I just set the SAMD21 restart immediately after the program continues. Best regards, Edwin Lu

Only top voted, non community-wiki answers of a minimum length are eligible