Open mariobehling opened 8 months ago
According to BadgeBLE, the device only supports 8 types of animations that are already included in BadgeMagic Android app. The python version implements this back-and-forth animation by sending 2 messages to the device: One message sliding to the left then the same but sliding to the right (and repeat).
However, the android version doesn't support sending more than 1 message (Please checkSendingUtils.kt
):
fun convertToDeviceDataModel(message: Message): DataToSend {
return DataToSend(listOf(message))
}
Therefore, we need first to modify the project to support accepting a list of messages, not only 1 message. After that, we can implement this back-and-forth animation easily.
The Python version has a back and forth animation.
Please implement the same here
This option should be part of the animation screen (middle option).![Screenshot from 2024-02-26 11-27-33](https://github.com/fossasia/badgemagic-android/assets/1583873/6eae8148-cba2-415e-b5f9-f550dd012e0a)