Isuru Walpola
Isuru Walpola
I see that you're using stevstrong's repo. Please post this same issue to that repository , because he is the person who wrote this write8 function. It seems weird to...
I double checked my own thinking, and stevstrong's XOR operation is OK. I'll think about it and see why PA8-PA15 is being affected.
Screen is white because there are things in lines 18-30 in the cpp file that need to be changed. (setting control pins as output) I suggest you replace line 18...
I hope that during testing, you are setting pinMode of your relay pins to OUTPUT before using digitalWrite. Otherwise it will not work.
A problem indeed... It may a problem in the function that sets the data bus to output mode (Using CRL or CRH) also. There are few options now, especially is...
Here are some examples https://gist.github.com/iwalpola/6c36c9573fd322a268ce890a118571ca I read your update, and your code appears to be correct. Its very strange that this is still not working. Did you add the code...
I'm so sorry that we can't figure this out... Maybe you could share the code files on github, and I can take a look? In the meantime, why not look...
Okay, i tracked down the digitalWrite function. It's in [this](https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/cores/maple/wirish_digital.cpp) file ` void digitalWrite(uint8 pin, uint8 val) { if (pin >= BOARD_NR_GPIO_PINS) { return; } gpio_write_bit(PIN_MAP[pin].gpio_device, PIN_MAP[pin].gpio_bit, val); } `...
Yes it makes sense, but if this also does not work, remember that BSRR is a 32 bit word, and 0x00FF is a 16 bit word. Please test and let...
of course, if it works Alexandr should submit a pull request to both my repo and stevestrong's repo, and we will merge the change (it will appear as an open...