primary expression for void

Could you guys tell me what the primary expression for void is?
Thanks. I wanted to use a string loop and I just can’t figure out why to do>
Here is my code so far.

#include “Arduino.h”
#include “heltec.h”

// Adapted from Adafruit_SSD1306
void drawLines() {
for (int16_t i=0; i<DISPLAY_WIDTH; i+=4) {
Heltec.display->drawLine(0, 0, i, DISPLAY_HEIGHT-1);
Heltec.display->display();
delay(10);
}
for (int16_t i=0; i<DISPLAY_HEIGHT; i+=4) {
Heltec.display->drawLine(0, 0, DISPLAY_WIDTH-1, i);
Heltec.display->display();
delay(10);
}
delay(250);

Heltec.display->clear();
for (int16_t i=0; i<DISPLAY_WIDTH; i+=4) {
Heltec.display->drawLine(0, DISPLAY_HEIGHT-1, i, 0);
Heltec.display->display();
delay(10);
}
for (int16_t i=DISPLAY_HEIGHT-1; i>=0; i-=4) {
Heltec.display->drawLine(0, DISPLAY_HEIGHT-1, DISPLAY_WIDTH-1, i);
Heltec.display->display();
delay(10);
}
delay(250);

Heltec.display->clear();
for (int16_t i=DISPLAY_WIDTH-1; i>=0; i-=4) {
Heltec.display->drawLine(DISPLAY_WIDTH-1, DISPLAY_HEIGHT-1, i, 0);
Heltec.display->display();
delay(10);
}
for (int16_t i=DISPLAY_HEIGHT-1; i>=0; i-=4) {
Heltec.display->drawLine(DISPLAY_WIDTH-1, DISPLAY_HEIGHT-1, 0, i);
Heltec.display->display();
delay(10);
}
delay(250);
Heltec.display->clear();
for (int16_t i=0; i<DISPLAY_HEIGHT; i+=4) {
Heltec.display->drawLine(DISPLAY_WIDTH-1, 0, 0, i);
Heltec.display->display();
delay(10);
}
for (int16_t i=0; i<DISPLAY_WIDTH; i+=4) {
Heltec.display->drawLine(DISPLAY_WIDTH-1, 0, i, DISPLAY_HEIGHT-1);
Heltec.display->display();
delay(10);
}
delay(250);
}

// Adapted from Adafruit_SSD1306
void drawRect(void) {
for (int16_t i=0; i<DISPLAY_HEIGHT/2; i+=2) {
Heltec.display->drawRect(i, i, DISPLAY_WIDTH-2i, DISPLAY_HEIGHT-2i);
Heltec.display->display();
delay(10);
}
}

// Adapted from Adafruit_SSD1306
void fillRect(void) {
uint8_t color = 1;
for (int16_t i=0; i<DISPLAY_HEIGHT/2; i+=3) {
Heltec.display->setColor((color % 2 == 0) ? BLACK : WHITE); // alternate colors
Heltec.display->fillRect(i, i, DISPLAY_WIDTH - i2, DISPLAY_HEIGHT - i2);
Heltec.display->display();
delay(10);
color++;
}
// Reset back to WHITE
Heltec.display->setColor(WHITE);
}

// Adapted from Adafruit_SSD1306
void drawCircle(void) {
for (int16_t i=0; i<DISPLAY_HEIGHT; i+=2) {
Heltec.display->drawCircle(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, i);
Heltec.display->display();
delay(10);
}
delay(1000);
Heltec.display->clear();
Heltec.display->drawCircleQuads(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, DISPLAY_HEIGHT/4, 0b00000001);
Heltec.display->display();
delay(200);
Heltec.display->drawCircleQuads(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, DISPLAY_HEIGHT/4, 0b00000011);
Heltec.display->display();
delay(200);
Heltec.display->drawCircleQuads(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, DISPLAY_HEIGHT/4, 0b00000111);
Heltec.display->display();
delay(200);
Heltec.display->drawCircleQuads(DISPLAY_WIDTH/2, DISPLAY_HEIGHT/2, DISPLAY_HEIGHT/4, 0b00001111);
Heltec.display->display();
}

void printBuffer(void) {
// Initialize the log buffer
// allocate memory to store 8 lines of text and 30 chars per line.
Heltec.display->setLogBuffer(2, 30);

// Some test data
const char* test = {

“XD”,
“”
“”

“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“:)” ,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“:0”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“8)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“B)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“;)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“(0)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“(>_<)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“(^0^)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“(.w.)”,
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”
“”

“$)”,

};

for (uint8_t i = 0; i < 11; i++) {
Heltec.display->clear();
// Print to the screen
Heltec.display->println(test*);*

  • // Draw it to the internal screen buffer*

  • Heltec.display->drawLogBuffer(0, 0);*

  • // Display it on the screen*

  • Heltec.display->display();*

  • delay(500);*

  • }*
    }
    void setup() {
    _ Heltec.begin(true /DisplayEnable Enable/, true /Serial Enable/);_

  • Heltec.display->setContrast(255);*

  • drawLines();*

  • delay(1000);*

  • Heltec.display->clear();*

  • drawRect();*

  • delay(1000);*

  • Heltec.display->clear();*

  • fillRect();*

  • delay(1000);*

  • Heltec.display->clear();*

  • drawCircle();*

  • delay(1000);*

  • Heltec.display->clear();*

  • printBuffer();*

  • delay(1000);*

  • Heltec.display->clear();*
    }
    void loop() { }

@monyaramalla

I have split this post from the ancient topic that it was originally posted to (do not do that in future) but have no idea what you are asking. Please look at this topic Read this before posting a programming question and post your code and question following the instructions given

Hello monyaramalla,
Welcome to the forum.

Code with smiley faces in it doesn't usually work to well.

Please read General guidance
And
How to use this forum
Especially item #7 on posting code. Then go back and edit your original post to use code tags like it tells you so your code is easy to read and not full of smiley faces.

As to your question I am going to guess (and it really is a guess) that what you are really asking about is something to do with the things called 'functions'. They are called functions, they are not called 'voids'.

Please clarify your question in line with the instructions then maybe someone will be able to help you.

Please edit your post to add code tags.

monyaramalla:
Could you guys tell me what the primary expression for void is?

Could you provide the WHOLE error message? I think the error you got was something like "Expected primary expression before keyword 'void'" which often means that you are missing a character or have an extra character before a 'void' somewhere.