Black wire is the Gnd , Red is 5v, Blue .Green, Yellow are the halls and White is the speed sensor. If the controller has no speed wire connection then one will have to for go it.
All hall colours mate colour to like colour with only the Blue, Green & Yellow which sometimes need swapping if...