P10 HUB12 2 Text static and marquee

I want void temp to not follow void running, what should I add, break or delay?

#include <OneWire.h>
#include <DallasTemperature.h>

OneWire pin_DS18B20(5);
DallasTemperature DS18B20(&pin_DS18B20);

#include <SPI.h>
#include <DMD.h>
#include <TimerOne.h>
#include "SystemFont5x7.h"
#include "Arial_black_16.h"
#include "Arial14.h"
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
String str;
char b[8];
DMD dmd(DISPLAYS_ACROSS, DISPLAYS_DOWN);

unsigned long previousMillis1 = 0;
const long interval1 = 1000;

void ScanDMD(){
  dmd.scanDisplayBySPI();
}

void setup() {
  Serial.begin(9600);
  Timer1.initialize(5000);
  Timer1.attachInterrupt(ScanDMD);
  dmd.clearScreen(true);
  
  DS18B20.begin();
}

void loop() {
  running();
  temp();
}

void running() {
  int slen=0;
  dmd.selectFont(SystemFont5x7); 
  str = "TEMP";
  slen = str.length()+1;
  str.toCharArray(b, slen );
  dmd.drawMarquee( b, slen, (32*DISPLAYS_ACROSS)-1 ,1); //32 is the board size
  unsigned long timing  = millis();
  boolean flag = false;
  while (!flag) {
    if ((timing + 70) < millis()) {
      flag = dmd.stepMarquee(-1, 0);
      timing = millis();
    }
  }
}

void temp() {
DS18B20.requestTemperatures();
  
  if(millis() - previousMillis1 >= interval1) {
    previousMillis1 = millis();
      dmd.clearScreen( true );
      
      dmd.selectFont(SystemFont5x7);                                     
      str=DS18B20.getTempCByIndex(0);  
      slen= str.length()+1;           
      str.toCharArray(b,slen);
      dmd.drawString(1,8,b,slen,GRAPHICS_NORMAL);
  }
}

Then don't call it after calling the running() function

void loop()
{
  running();
//  temp();
}

When do you want to call the temp() function, if ever ?

I want to make the first 2 text views and the second text then between the 2 texts I want one of them to be animated with running text

You start request of temperature on each call of the loop(). It hasn't time to measure.
Request temperature only AFTER reading it

Pay attention to the picture, void temp also goes to the left even though there is no marquee code in void temp

What is you mean as "void temp" ? Are you understand what is "void" in C language?

indeed!
This library shift entire screen if you use marquee code anywhere in the screen

With that library I want to move the text "hello" from right to left, how do I do that?

Do not use marquee function. Move the text manually.
On each step clear "Hello" and print it again 1 pix left

I don't know how the code does that

I don't know another way to do what you want, sorry.
The library don't supports the running text on the part of screen

Try other libraries... in another thread you already asked about this

This is what I want, the top one is stationary and the bottom one is moving

It possible, but you have to program it yourself.

See this as example ( the library is not suited for you, but the code almost the same)

Also the library is not support the marquee on the part of screen as DMD.h you used, but see on the last video of thread - lower text moving independently to upper

Don't support the DMD32 and DMD2 libraries as I provided in the image above?

???
Sorry, i don't understand you, my English is weak.
Please reformulate your question.

Is it true that DMD32 and DMD2 also can't make the writes go the way I want them to?

About DMD2.h I don't know exactly, but suggest so.

What is the library DMD32? Are you mean DMD_STM32 ? - yes, it doesn't support what you want.

So all the libraries don't support what I'm saying?

I saw from YouTube that something could be in the library and he wrote it like this

  int slen = 0;
  str = "TEMP";
  str.toCharArray(b,8);
  j=strlen(b)+(strlen(b)*5);
  //=====================================================
  
  i--;
  dmd.drawString(i, 9, b, strlen(b), GRAPHICS_NORMAL);
  if (i<=~j) {
    i=32;
    sr++;
    if (sr>2) sr=1;
  }

Here's a video I found
Led scrolling display board | led display board | P10 module | led clock | Arduino uno | Rtc module

As can I see in your code snippet, the man do it the same as I advised you in post above - he move the string by drawing it with drawString() time by time:

It is exactly what I meant....