Hi my friends!!!
i need some help from you , I’m a university student doing my final project.I’m Sri Lankan. Please forgive for my grammer mistakes.
I built an Arduino code for convert group of words(number of characters) into binary stream and according to that binary stream blinks my LED which connect to my Arduino. That Arduino part is succeed.
“ int LEDTrans = 8;
void setup() {
Serial.begin(9600);
pinMode(LEDTrans, OUTPUT);
String myText = “ __any group of words (text) __ “ ;
************************************** “
Now again ,I built a python code for convert convert an image into base64.This output is also a group of words (number of characters).
“ import base64
with open ( “ my_image .jpg”, “rb”) as img_file:
my_string = base64.b64encode(image_file.read())
print(my_string) “
Then my mission is combine these scripts for convert image into blinking LED.
“
int LEDTrans = 8;
void setup() {
Serial.begin(9600);
pinMode(LEDTrans, OUTPUT);
String myText = “ I need to give here my python output as my Arduino input, image into base64 text(number of words) which comes from python output__“;
*************************************** “
Please help me to combine these code.Please give me solution for combine this.Is there any code want to combine these??
What it is??
Help me...