alessandro
is there a group which talk about programing avr C?
Jose
is there a group which talk about programing avr C?
I think this group covers avr C programming, right?
Jose
i don't think...
Start asking :)
alessandro
Start asking :)
you know lcd has three register RS, RW and E
alessandro
ah
Jose
The registers are inside the MCU, in the chips capable of driving LCD signals (technically boring stuff, continue, please)
alessandro
k
alessandro
but when it starts it appears only white block, and not letter
alessandro
is it software problem or you think it's hardware problem?
Jose
Do you use any testing device with "firmware that works"?
alessandro
i pushed by internet the code...
alessandro
i know what it do, i have read the datasheet
Jose
To ensure your LCD is not broken, the approach of Shannon's communication model is a great way to ensure everything is working as expected https://helpfulprofessor.com/wp-content/uploads/2019/09/shannon-weaver-model-of-communication.jpg (this approach could be used to ensure integration of various subsystems) If your C code "seems right" (for example, using an Arduino example with an Arduino board to show messages on the LCD), use another LCD to check if the first LCD was broken or malfuncitoning. Using this way (using another board to check) ensures your emitter was correct (in the Shannon's equivalent) If the code was correct, but both LCDs are not working, the channel would be wrong or the LCDs are bad. Its very unlikely both LCDs would be broken but... things like this happen, be aware of it. If the channel was wrong (the cables used for driving the signals) are bad, then you change them and test it again with the test device (the arduino board with the firmware to check screens) If both cables and LCD are working, your C code was bad and it doesn't work as expected (yes, in the hardware world costs more time to ensure your code is bad)
Gabriel
vcpkg is really useful on windows os?
Gabriel
I don't know exactly how to manager these packages using tools like that, is some annoying, but it makes sense if you look to other os
klimi
vcpkg is really useful on windows os?
it's cross platform afaik
тнє ρяσgяαммєя 👨‍💻
hi friends i have an exercise in C can someone help me ?
тнє ρяσgяαммєя 👨‍💻
show us
sending images is prohibited, I send you in private?
тнє ρяσgяαммєя 👨‍💻
exercise2 : Write a program mappesecret.c which: -computes the size of file.txt as efficiently as possible (without using read). -projects the entire file to mmap so that any modifications are passed on -writes a secret code in a random place of this file (using its projection). This secret code begins with the two characters Ox, followed by a random number (greater than 8 and less than 16) randomly drawn whole digits, then ends in x0 key function:rand Exercise 3: Go back to the program from the previous question. Once the code is created and written to file.txt. the program is duplicated N times, where N is passed as an argument. The child processes must find the secret code and display it. Exercise 4: We now separate the writing and the search for the secret code. Write a program hideout.c which writes the secret code (still using map), and a program spy.c which searches for the secret code CAN YOU HELP ME ?
тнє ρяσgяαммєя 👨‍💻
j. c o l e
Who can help with discrete math quiz? 50 questions for 1 hour. I will pay 30 dollars
Amrith
in Visual studio (not code) , how to watch for the return value in my case a recursive function
𝖳𝗁𝖾 𝖠𝗅𝗀𝗈𝗋𝗂𝗍𝗁𝗆 𝖭𝗂𝗇𝗃𝖺 ⚪♛
https://github.com/ian-dubaideveloper/ChatGpt-VsCode-Extension
Anonymous
Hi! I need help🙃 How do I build programs with a graphical interface in Dev C/C++ with C++ like a windows forms with buttons, among others?
Puspam
Hi! I need help🙃 How do I build programs with a graphical interface in Dev C/C++ with C++ like a windows forms with buttons, among others?
For GUI, the basic thing to do is to use the platform APIs & draw graphics pixel by pixel. That's very tiring & doesn't make sense. That's why there are GUI toolkits available which provide readymade "widgets" such as buttons, text boxes, menus, etc. Some toolkits are GTK, Qt, Electron and Kirigami. They have varying levels of complexity & customisation. You can compare them online & see which one you should use.
Anonymous
Hello everyone how can I change a size of texture as render target in SDL library without stretching the real size lie when I create some texture For instance : .... SDL_Texture * texture=SDL_CreateTexture(render,SDL_PIXELFORMATRGBA8888,SDL_TEXTUREACESS_TARGET,100,20); ... I want to update this size at runtime even if I create another texture it's still not work , please help me!! Sorry for my English i m natural french
Osama
What is the problem with this code to print the same pattern in c++?
Osama
/* 5                  4 blanks + 1 "5" 4 4               3 blanks + 2 "4"s 3 3 3            2 blanks + 3 "3"s 2 2 2 2          1 blanks + 4 "2"s 1 1 1 1 1       0 blanks + 5 "1"s */
Chat Boss
Osama S sent a code, it has been re-uploaded as a file
Chat Boss
Kriss Ny sent a code, it has been re-uploaded as a file
Chat Boss
Kriss Ny sent a code, it has been re-uploaded as a file
Puspam
Wich toolkit do You recomend? I al try WX on codeblocks there is a bettwr / easy way for do GUI, some thing like visual basic?
I use cross-platform toolkits. So, I mostly use GTK & QT because of their platform theming support.
Elmer
Understand , i think you ok, so i now move to a cross-platform toolkit
Anonymous
Hi! I try to read 6 values but I can’t #include <iostream> #include <vector> using std::vector; int main(){ vector<int> value(6); for(int j=0; j<value.size();j++){ std::cin>>value.push_back(j); } return 0; }
Anonymous
The program return this: “no match operator>>” (operand types are “std::basic_istream<char>” and void)
Anonymous
Help😔
klimi
Help😔
what do you think that the std::cin will do?
Chat Boss
Earlyman sent a huge message, it has been re-uploaded as a file Hi! I try to read 6 values  but I can’t #include <iostream> #include <vector> using std::vector; int main(){      vector<int> ..
Chat Boss
Help😔
Earlyman sent a huge message, it has been re-uploaded as a file Try this #include <iostream> #include <vector> using std::vector; int main(){ vector<int> value(6); for(int j=0; j<..
Pavel
@ROWATT you don't need to init your vector with size if you do push_back later. Just have it as vector<int> value;
Anonymous
@ROWATT you don't need to init your vector with size if you do push_back later. Just have it as vector<int> value;
The error persistis 😔Could this also be due to the version of c++ I'm using Dev-C/C++
klimi
and what error are you getting?
Anonymous
and what error are you getting?
The program return this: “no match operator>>” (operand types are “std::basic_istream<char>” and void)
Anonymous
I believe just reaching the std namespace🤔🤔🤔
Anonymous
I already tried “cin>>”
Anonymous
it must be my IDE that has a problem, because in sublime-text with Gcc it runs
klimi
you are compiling c++ with gcc?
klimi
I believe just reaching the std namespace🤔🤔🤔
Once again, what do you think that this line does? std::cin>>value.push_back(j);
Anonymous
you are compiling c++ with gcc?
No and this i’m uisng o Dev-C/C++
Anonymous
*this moment
Anonymous
Once again, what do you think that this line does? std::cin>>value.push_back(j);
you can tell because i'm no longer understand the purpose, please tell me😶
Anonymous
you can tell because i'm no longer understand the purpose, please tell me😶
1) u are pushing back j variable into ur vector instead ur value, which u type into console. 2) i don`t know even how to explain second part in correct way, but u trying smth like do cin>> into the call of ur vector push_back() function. It`s absolutely incorrect.
Anonymous
so u maybe need to create some tmp variable same type, as type of ur vector array (I mean int in this case), do cin>>tmp and after that call value.push_back(tmp); and same 6 times (iterations inside ur for loop)
Subhajit
Logic tell me please * * * * * * * * *
Subhajit
Pattern logic behind this
Subhajit
for(j=1;j<=i;j+=2) I write this but it says wrong
Subhajit
Neither if(j%2!=0) It's not working too
klimi
seems fine, you must have problem somewhere else
Subhajit
2n -1
I have two for loops. Where do i write?
klimi
you need to print 2n+1 the star... it's quite obvious isn't it?
Subhajit
Got it
Subhajit
I had to write i+=2
Subhajit
But i was writing j+=2
Ivan
Greetings collegues, I’m about to release opensource framework for embeded systems (with focus on drones autopilots at the beginning). And plan it to structure project as nested submodules: - project example (quadrotor drone) — top level lib for STM32 based hardware (OS+BSP+Drivers) —— library C-ATOM for orchestrating functions ——— middleware pub sub library ESWB Motivation for that is to keep repo as clean as possible. But still think it may create an issue with navigation and understanding for the contributors. What do you think about the this kind of project structuring?
DaviChan
Too much text
I don't force you to read it :p
DaviChan
You cannot decrypt encrypted data? I would say both should be recoverable
That is given enough information, like the program used to encrypt the files would be a good start.