Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static inline void send(uint8_t data)
- {
- rw0;
- if (DB)
- {
- if (data & (1 << 4)) d4_1; else d4_0;
- if (data & (1 << 5)) d5_1; else d5_0;
- if (data & (1 << 6)) d6_1; else d6_0;
- if (data & (1 << 7)) d7_1; else d7_0;
- e1;
- HAL_Delay(1);
- e0;
- }
- if (data & (1 << 0)) d4_1; else d4_0;
- if (data & (1 << 1)) d5_1; else d5_0;
- if (data & (1 << 2)) d6_1; else d6_0;
- if (data & (1 << 3)) d7_1; else d7_0;
- e1;
- HAL_Delay(1);
- e0;
- HAL_Delay(2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement