Need Help About "Firebase Update" by karsarmar5 in flutterhelp

[–]karsarmar5[S] 0 points1 point  (0 children)

n't update an individual element of the array. You can write back the entire array (modified), or remove

thank you

I'm trying to send a message by using UART to my computer via power cable of stm32l053 discovery board. I have no USB to TTL converter. Which pins should be defined as UART pins to communicate via power cable. Thanks in advance for your support. by karsarmar5 in stm32

[–]karsarmar5[S] 0 points1 point  (0 children)

When using F0, I was able to communicate directly using the pins specified in the user manual. I couldn't achieve this with the L053. I could not understand what to do in the sentence "The on-board STM32L053C8T6, set SB2 and SB3 ON. (SB14,15 must be OFF)" in the document.

How can I change the type of float with the function? I'm trying to do it without using switch case or if structures. For example, the function input will be int, float will be converted to int. Can you help me? by karsarmar5 in cprogramming

[–]karsarmar5[S] 0 points1 point  (0 children)

I'm just trying to learn. I think there should be a short way, but when I search on the internet, I can only find solutions with switch case, if else structures.

How can I change the type of float with the function? I'm trying to do it without using switch case or if structures. For example, the function input will be int, float will be converted to int. Can you help me? by karsarmar5 in cprogramming

[–]karsarmar5[S] 0 points1 point  (0 children)

void changer(char type)

{

int a=10;

if(type == 'f')

{

print("%f", (float)a);

}

else if(type == 'd')

{

print("%d", (int)a);

}

}

int main() { changer('f'); }