Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component simindex "simulated encoder index"
- option nofp yes;
- pin in s32 rawcounts;
- pin out bit index;
- param rw u32 scale;
- function (_);
- ;;
- FUNCTION(_){
- if (rawcounts % scale == 0){
- index = 1;
- } else {
- index = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement