Comments (3)
I think you need to declare a buffer for title and subtitle then use strcpy to copy command line data to this buffer.
struct s_opts
{
int oled;
int verbose;
char title[64];
char subtitle[64];
} ;
then
case 't': strcpy(opts.title, optarg); break;
case 's': strcpy(opts.subtitle, optarg); break;
from arduipi_oled.
Hello Hallard,
thanks for fast response.
Mhhh, not work... I don't understand why...
root@raspberrypi:/usr/local/src/ArduiPi_OLED/examples# ./string_demo -v -o 3
Segmentation fault
root@raspberrypi:/usr/local/src/ArduiPi_OLED/examples# ./string_demo -v -o 3 -t 'title' -s 'subtitle'
Segmentation fault
Edit: I update the code in the first posting...
from arduipi_oled.
Hello Hallard,
do you have a other idea for me...? very very thanks...
from arduipi_oled.
Related Issues (20)
- using the libs with Geany (no cmd line parameters, no make, no makefile, no cmake): how to ?? HOT 3
- Minor error in ArduiPi_OLED.cpp?
- swap and min/max macros
- 128x32 SPI version doesn't work HOT 1
- run oled programs without sudo rights? HOT 2
- undefined reference to i2c_smbus_write_byte_data HOT 3
- Compilation on Raspberry Pi 3 with Ubuntu Mate 16.04 HOT 1
- How can I use OLED with RadioHead
- cannot find -li2c HOT 25
- No Output at all with SH1106 HOT 1
- Compile examples on RPi3 B+ Ubuntu Mate 18.04.2 (Bionic)
- Is it possible to dim the screen?
- solved: Which files to copy into which raspi dir?
- [mainly solved] can't install the lib on my Raspberry Pi (OS Raspbian Stretch) HOT 31
- Why can't the parameter OLED_I2C_RESET in init() be dropped?
- into which directory is the file ArduiPi_OLED.h installed by make? HOT 1
- Arduino Compatible types are ambiguous and possibly conflicting
- After installing looks like it doesn't add to path
- Compile on 64 bit Bookworm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduipi_oled.