Skip to content

Commit 37e3e99

Browse files
committed
Enlarge the vertical spacing value in textbox
1 parent 6be5a90 commit 37e3e99

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

examples/Inkplate10/Projects/Inkplate10_OpenAI_Text_Prompt/Inkplate10_OpenAI_Text_Prompt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void setup() {
7171
// Get current weather data
7272
if (getWeather(latitude, longitude, temperature, weatherDesc, timeStr)) {
7373
// Build prompt to send to OpenAI
74-
String prompt = "Give me a sarcastic 120-word max summary of the weather in " + location +
74+
String prompt = "Give me a sarcastic 110-word max summary of the weather in " + location +
7575
". It's currently " + String(temperature, 1) + "C with " + weatherDesc +
7676
" skies at " + timeStr +
7777
" (Just take the Hour and minutes, without AM or PM). Make it witty and slightly condescending. Dont use '—' and ' symbols, use - and ' respectively";
@@ -80,7 +80,7 @@ void setup() {
8080
String snarkySummary = getOpenAIResponse(prompt);
8181

8282
// Display the response on screen
83-
display.drawTextBox(100, 100, 1100, 720, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
83+
display.drawTextBox(100, 100, 1100, 720, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8484
display.display(); // Push the buffer to the screen
8585
} else {
8686
// Handle weather data fetch failure

examples/Inkplate4TEMPERA/Projects/Inkplate4TEMPERA_OpenAI_Text_Prompt/Inkplate4TEMPERA_OpenAI_Text_Prompt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void setup() {
7171
// Get current weather data
7272
if (getWeather(latitude, longitude, temperature, weatherDesc, timeStr)) {
7373
// Build prompt to send to OpenAI
74-
String prompt = "Give me a sarcastic 70-word max summary of the weather in " + location +
74+
String prompt = "Give me a sarcastic 65-word max summary of the weather in " + location +
7575
". It's currently " + String(temperature, 1) + "C with " + weatherDesc +
7676
" skies at " + timeStr +
7777
" (Just take the Hour and minutes, without AM or PM). Make it witty and slightly condescending. Dont use '—' and ' symbols, use - and ' respectively";
@@ -80,7 +80,7 @@ void setup() {
8080
String snarkySummary = getOpenAIResponse(prompt);
8181

8282
// Display the response on screen
83-
display.drawTextBox(50, 50, 550, 550, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
83+
display.drawTextBox(50, 50, 550, 550, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8484
display.display(); // Push the buffer to the screen
8585
} else {
8686
// Handle weather data fetch failure

examples/Inkplate5/Projects/Inkplate5_OpenAI_Text_Prompt/Inkplate5_OpenAI_Text_Prompt.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ String weatherDesc, timeStr;
4848
WiFiClientSecure client;
4949

5050
// Inkplate display instance (1-bit mode for faster update and lower power usage)
51-
Inkplate display;
51+
Inkplate display(INKPLATE_1BIT);
5252

5353
void setup() {
5454
display.begin(); // Initialize the Inkplate display
@@ -70,7 +70,7 @@ void setup() {
7070
// Get current weather data
7171
if (getWeather(latitude, longitude, temperature, weatherDesc, timeStr)) {
7272
// Build prompt to send to OpenAI
73-
String prompt = "Give me a sarcastic 60-word max summary of the weather in " + location +
73+
String prompt = "Give me a sarcastic 50-word max summary of the weather in " + location +
7474
". It's currently " + String(temperature, 1) + "C with " + weatherDesc +
7575
" skies at " + timeStr +
7676
" (Just take the Hour and minutes, without AM or PM). Make it witty and slightly condescending. Dont use '—' and ' symbols, use - and ' respectively";
@@ -79,7 +79,7 @@ void setup() {
7979
String snarkySummary = getOpenAIResponse(prompt);
8080

8181
// Display the response on screen
82-
display.drawTextBox(60, 50, 800, 490, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
82+
display.drawTextBox(60, 50, 800, 490, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8383
display.display(); // Push the buffer to the screen
8484
} else {
8585
// Handle weather data fetch failure

examples/Inkplate5V2/Projects/Inkplate5V2_OpenAI_Text_Prompt/Inkplate5V2_OpenAI_Text_Prompt.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void setup() {
8080
String snarkySummary = getOpenAIResponse(prompt);
8181

8282
// Display the response on screen
83-
display.drawTextBox(100, 200, 1180, 620, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
83+
display.drawTextBox(100, 200, 1180, 620, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8484
display.display(); // Push the buffer to the screen
8585
} else {
8686
// Handle weather data fetch failure

examples/Inkplate6/Projects/Inkplate6_OpenAI_Text_Prompt/Inkplate6_OpenAI_Text_Prompt.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void setup() {
8080
String snarkySummary = getOpenAIResponse(prompt);
8181

8282
// Display the response on screen
83-
display.drawTextBox(50, 100, 750, 550, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
83+
display.drawTextBox(50, 100, 750, 550, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8484
display.display(); // Push the buffer to the screen
8585
} else {
8686
// Handle weather data fetch failure

examples/Inkplate6COLOR/Projects/Inkplate6COLOR_OpenAI_Text_Prompt/Inkplate6COLOR_OpenAI_Text_Prompt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void setup() {
7070
// Get current weather data
7171
if (getWeather(latitude, longitude, temperature, weatherDesc, timeStr)) {
7272
// Build prompt to send to OpenAI
73-
String prompt = "Give me a sarcastic 50-word max summary of the weather in " + location +
73+
String prompt = "Give me a sarcastic 40-word max summary of the weather in " + location +
7474
". It's currently " + String(temperature, 1) + "C with " + weatherDesc +
7575
" skies at " + timeStr +
7676
" (Just take the Hour and minutes, without AM or PM). Make it witty and slightly condescending. Dont use '—' and ' symbols, use - and ' respectively";
@@ -79,7 +79,7 @@ void setup() {
7979
String snarkySummary = getOpenAIResponse(prompt);
8080

8181
// Display the response on screen
82-
display.drawTextBox(50, 50, 550, 433, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
82+
display.drawTextBox(50, 50, 550, 433, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8383
display.display(); // Push the buffer to the screen
8484
} else {
8585
// Handle weather data fetch failure

examples/Inkplate6FLICK/Projects/Inkplate6FLICK_OpenAI_Text_Prompt/Inkplate6FLICK_OpenAI_Text_Prompt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void setup() {
7171
// Get current weather data
7272
if (getWeather(latitude, longitude, temperature, weatherDesc, timeStr)) {
7373
// Build prompt to send to OpenAI
74-
String prompt = "Give me a sarcastic 90-word max summary of the weather in " + location +
74+
String prompt = "Give me a sarcastic 80-word max summary of the weather in " + location +
7575
". It's currently " + String(temperature, 1) + "C with " + weatherDesc +
7676
" skies at " + timeStr +
7777
" (Just take the Hour and minutes, without AM or PM). Make it witty and slightly condescending. Dont use '—' and ' symbols, use - and ' respectively";
@@ -80,7 +80,7 @@ void setup() {
8080
String snarkySummary = getOpenAIResponse(prompt);
8181

8282
// Display the response on screen
83-
display.drawTextBox(100, 200, 924, 658, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
83+
display.drawTextBox(100, 200, 924, 658, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8484
display.display(); // Push the buffer to the screen
8585
} else {
8686
// Handle weather data fetch failure

examples/Inkplate6PLUS/Projects/Inkplate6PLUS_OpenAI_Text_Prompt/Inkplate6PLUS_OpenAI_Text_Prompt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void setup() {
7070
// Get current weather data
7171
if (getWeather(latitude, longitude, temperature, weatherDesc, timeStr)) {
7272
// Build prompt to send to OpenAI
73-
String prompt = "Give me a sarcastic 90-word max summary of the weather in " + location +
73+
String prompt = "Give me a sarcastic 80-word max summary of the weather in " + location +
7474
". It's currently " + String(temperature, 1) + "C with " + weatherDesc +
7575
" skies at " + timeStr +
7676
" (Just take the Hour and minutes, without AM or PM). Make it witty and slightly condescending. Dont use '—' and ' symbols, use - and ' respectively";
@@ -79,7 +79,7 @@ void setup() {
7979
String snarkySummary = getOpenAIResponse(prompt);
8080

8181
// Display the response on screen
82-
display.drawTextBox(100, 200, 924, 658, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, NULL, false, 28);
82+
display.drawTextBox(100, 200, 924, 658, snarkySummary.c_str(), 1, &FreeMonoBold18pt7b, 38, false, 28);
8383
display.display(); // Push the buffer to the screen
8484
} else {
8585
// Handle weather data fetch failure

0 commit comments

Comments
 (0)