Records of the Three Kingdoms
Cao Pi, courtesy name Zihuan, was from Qiao in Pei, Cao Cao’s son by Lady Bian. In 217 he was named heir of Wei over Cao Zhi. When Cao Cao died in the first month of 220, Cao Pi succeeded. In the tenth month Emperor Xian abdicated. Cao Pi became emperor, called the state Wei, opened the Huangchu reign, and made Luoyang the capital.
He reigned seven years. Repeated campaigns against Wu did not break the Ruxu line or Jiangdong. He enfeoffed Sun Quan as king of Wu. He died of illness in 226, at forty. His son Cao Rui succeeded. Cao Pi left the Dianlun and poems. The Wei dynasty begins with him.
Romance of the Three Kingdoms
The novel concentrates on his pressure for the abdication and on the poem in seven paces. Cao Zhi finishes a poem before seven steps are done, and Cao Pi cannot conveniently kill him. The pressure of the abdication is in the histories. The seven-pace poem has no reliable contemporary record.
The book also has his campaigns against Wu fail, and soon gives the throne to Cao Rui.
Reference: Wikipedia · Cao Pi